开始增加支付-1
This commit is contained in:
@@ -16,6 +16,7 @@ type Config struct {
|
||||
Storage StorageConfig
|
||||
SMS SMSConfig
|
||||
Realname RealnameConfig
|
||||
Payment PaymentConfig
|
||||
Log LogConfig
|
||||
}
|
||||
|
||||
@@ -41,6 +42,23 @@ type RealnameConfig struct {
|
||||
CloudMarketAppCode string
|
||||
}
|
||||
|
||||
type PaymentConfig struct {
|
||||
Provider string
|
||||
Leshua LeshuaPaymentConfig
|
||||
}
|
||||
|
||||
type LeshuaPaymentConfig struct {
|
||||
GatewayURL string
|
||||
MerchantID string
|
||||
SignKey string
|
||||
NotifyKey string
|
||||
NotifyURL string
|
||||
JumpURL string
|
||||
PayWay string
|
||||
JSPayFlag string
|
||||
SignType string
|
||||
}
|
||||
|
||||
type LogConfig struct {
|
||||
Level string
|
||||
Dir string
|
||||
@@ -76,6 +94,20 @@ func Load() Config {
|
||||
CloudMarketURL: getEnv("REALNAME_CLOUDMARKET_URL", "https://sinocheck2.market.alicloudapi.com/fortest/ttttt"),
|
||||
CloudMarketAppCode: getEnv("REALNAME_CLOUDMARKET_APPCODE", ""),
|
||||
},
|
||||
Payment: PaymentConfig{
|
||||
Provider: getEnv("PAYMENT_PROVIDER", "mock"),
|
||||
Leshua: LeshuaPaymentConfig{
|
||||
GatewayURL: getEnv("LESHUA_GATEWAY_URL", "https://t-paygate.lepass.cn/cgi-bin/lepos_pay_gateway.cgi"),
|
||||
MerchantID: getEnv("LESHUA_MERCHANT_ID", ""),
|
||||
SignKey: getEnv("LESHUA_SIGN_KEY", ""),
|
||||
NotifyKey: getEnv("LESHUA_NOTIFY_KEY", ""),
|
||||
NotifyURL: getEnv("LESHUA_NOTIFY_URL", ""),
|
||||
JumpURL: getEnv("LESHUA_JUMP_URL", ""),
|
||||
PayWay: getEnv("LESHUA_PAY_WAY", "ZFBZF"),
|
||||
JSPayFlag: getEnv("LESHUA_JSPAY_FLAG", "2"),
|
||||
SignType: getEnv("LESHUA_SIGN_TYPE", "MD5"),
|
||||
},
|
||||
},
|
||||
Log: LogConfig{
|
||||
Level: getEnv("LOG_LEVEL", "info"),
|
||||
Dir: getEnv("LOG_DIR", "logs"),
|
||||
|
||||
Reference in New Issue
Block a user