|
|
@@ -163,8 +163,8 @@ func GetAppPayData(outTradeNo string, totalPrice int64, body, notifyUrl, remoteI
|
|
|
// 2016/07/07 11:07:02 [pay_controller.go:303] [W] 生成微信支付订单号:DS20160707503D648C,传的参数:openid=o7lR2txmVPh1pSPjIvto2LO_XVYU,
|
|
|
// 价格:9.90, 名称:希客购, 客户端IP=119.132.31.240;生成的参数:%!v(MISSING)
|
|
|
func getAppPayPrepayId(outTradeNo string, totalPrice int64, body, notifyUrl, remoteIp, payCode string, limit bool) (prepayId string) {
|
|
|
- appId := beego.AppConfig.String("WxFohowAppAppId") //获取App渠道appId
|
|
|
- mechantInfo := GetMechantInfo(payCode) //商户号配置信息
|
|
|
+ appId := beego.AppConfig.String("WxFohowAndroAppAppId") //获取App渠道appId
|
|
|
+ mechantInfo := GetMechantInfo(payCode) //商户号配置信息
|
|
|
mchProxy := getMchProxyInitClient(payCode)
|
|
|
|
|
|
outTradeNo = fmt.Sprintf("%s_%d", outTradeNo, time.Now().Unix())
|
|
|
@@ -202,7 +202,7 @@ func getAppPayPrepayId(outTradeNo string, totalPrice int64, body, notifyUrl, rem
|
|
|
|
|
|
// 获取jsSDK微信支付需要的数据
|
|
|
func GetPayData(openid, outTradeNo string, totalPrice int64, body, notifyUrl, remoteIp, payCode string) (ret map[string]string) {
|
|
|
- appId := beego.AppConfig.String("WxFohowXcxAppId") //获取小程序渠道appId
|
|
|
+ appId := beego.AppConfig.String(" ") //获取小程序渠道appId
|
|
|
mechantInfo := GetMechantInfo(payCode)
|
|
|
prepayId := getPayPrepayId(openid, outTradeNo, totalPrice, body, notifyUrl, remoteIp, payCode, true)
|
|
|
u := uuid.NewV4().String()
|