|
@@ -37,6 +37,10 @@ const (
|
|
|
oubiaoMchId = "1601075858"
|
|
oubiaoMchId = "1601075858"
|
|
|
oubiaoApiKey = "7592dac80b33214829b3484740162ac4"
|
|
oubiaoApiKey = "7592dac80b33214829b3484740162ac4"
|
|
|
|
|
|
|
|
|
|
+ //丰和
|
|
|
|
|
+ fengheMchId = "1616910264"
|
|
|
|
|
+ fengheApiKey = "9WVsj03BL10ych7UlwmDmHhrLfoFqZqq"
|
|
|
|
|
+
|
|
|
//微信公众号使用小程序的商户号和api加密
|
|
//微信公众号使用小程序的商户号和api加密
|
|
|
gzhMchId = ""
|
|
gzhMchId = ""
|
|
|
gzhApiKey = ""
|
|
gzhApiKey = ""
|
|
@@ -144,13 +148,18 @@ func GetMechantInfo(mechantCode string) (ret MechantPayInfo) {
|
|
|
ret.ApiKey = oubiaoApiKey
|
|
ret.ApiKey = oubiaoApiKey
|
|
|
ret.MchKeyFile = beego.AppConfig.String("OuBiaoMchKeyFile")
|
|
ret.MchKeyFile = beego.AppConfig.String("OuBiaoMchKeyFile")
|
|
|
ret.MchCertFile = beego.AppConfig.String("OuBiaoMchCertFile")
|
|
ret.MchCertFile = beego.AppConfig.String("OuBiaoMchCertFile")
|
|
|
|
|
+ case "fenghe":
|
|
|
|
|
+ ret.MchId = oubiaoMchId
|
|
|
|
|
+ ret.ApiKey = oubiaoApiKey
|
|
|
|
|
+ ret.MchKeyFile = beego.AppConfig.String("OuBiaoMchKeyFile")
|
|
|
|
|
+ ret.MchCertFile = beego.AppConfig.String("OuBiaoMchCertFile")
|
|
|
default:
|
|
default:
|
|
|
//ret.MchId = mchId
|
|
//ret.MchId = mchId
|
|
|
//ret.ApiKey = apiKey
|
|
//ret.ApiKey = apiKey
|
|
|
//ret.MchKeyFile = beego.AppConfig.String("WxMchKeyFile")
|
|
//ret.MchKeyFile = beego.AppConfig.String("WxMchKeyFile")
|
|
|
//ret.MchCertFile = beego.AppConfig.String("MchCertFile")
|
|
//ret.MchCertFile = beego.AppConfig.String("MchCertFile")
|
|
|
- ret.MchId = oubiaoMchId
|
|
|
|
|
- ret.ApiKey = oubiaoApiKey
|
|
|
|
|
|
|
+ ret.MchId = fengheMchId
|
|
|
|
|
+ ret.ApiKey = fengheApiKey
|
|
|
ret.MchKeyFile = beego.AppConfig.String("OuBiaoMchKeyFile")
|
|
ret.MchKeyFile = beego.AppConfig.String("OuBiaoMchKeyFile")
|
|
|
ret.MchCertFile = beego.AppConfig.String("OuBiaoMchCertFile")
|
|
ret.MchCertFile = beego.AppConfig.String("OuBiaoMchCertFile")
|
|
|
}
|
|
}
|