Przeglądaj źródła

增加丰和商户

abiao 3 lat temu
rodzic
commit
914adde658
1 zmienionych plików z 11 dodań i 2 usunięć
  1. 11 2
      go/gopath/src/fohow.com/libs/wx_mp/pay.go

+ 11 - 2
go/gopath/src/fohow.com/libs/wx_mp/pay.go

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