This commit is contained in:
2026-04-27 11:56:41 +08:00
parent a10604178d
commit cef9612526
11 changed files with 298 additions and 86 deletions

View File

@@ -265,7 +265,7 @@ type SMSConfig struct {
type TencentSMSConfig struct {
SecretId string `mapstructure:"secret_id"`
SecretKey string `mapstructure:"secret_key"`
Region string `mapstructure:"region"` // 如 ap-guangzhou可空则默认 ap-guangzhou
Region string `mapstructure:"region"` // 如 ap-guangzhou可空则默认 ap-guangzhou
Endpoint string `mapstructure:"endpoint"` // 可空,默认 sms.tencentcloudapi.com
SmsSdkAppId string `mapstructure:"sms_sdk_app_id"` // SdkAppId
SignName string `mapstructure:"sign_name"`
@@ -494,12 +494,17 @@ type MuziLevelFileConfig struct {
// AliPayConfig 支付宝配置
type AliPayConfig struct {
AppID string `mapstructure:"app_id"`
PrivateKey string `mapstructure:"private_key"`
AlipayPublicKey string `mapstructure:"alipay_public_key"`
IsProduction bool `mapstructure:"is_production"`
NotifyURL string `mapstructure:"notify_url"`
ReturnURL string `mapstructure:"return_url"`
Mode string `mapstructure:"mode"`
AppID string `mapstructure:"app_id"`
PrivateKey string `mapstructure:"private_key"`
AlipayPublicKey string `mapstructure:"alipay_public_key"`
AppCertPath string `mapstructure:"app_cert_path"`
AlipayCertPath string `mapstructure:"alipay_cert_path"`
AlipayRootCertPath string `mapstructure:"alipay_root_cert_path"`
EncryptKey string `mapstructure:"encrypt_key"`
IsProduction bool `mapstructure:"is_production"`
NotifyURL string `mapstructure:"notify_url"`
ReturnURL string `mapstructure:"return_url"`
}
// WxpayConfig 微信支付配置