|
|
@@ -153,6 +153,8 @@ func GetMechantInfo(mechantCode string) (ret MechantPayInfo) {
|
|
|
func GetAppPayData(outTradeNo string, totalPrice int64, body, notifyUrl, remoteIp, payCode string) (ret map[string]string) {
|
|
|
appId := beego.AppConfig.String("WxFohowAndroAppAppId") //获取App appId
|
|
|
mechantInfo := GetMechantInfo(payCode)
|
|
|
+ outTradeNo = fmt.Sprintf("%s_%d", outTradeNo, time.Now().Unix())
|
|
|
+
|
|
|
prepayId := getAppPayPrepayId(outTradeNo, totalPrice, body, notifyUrl, remoteIp, payCode, true)
|
|
|
u := uuid.NewV4().String()
|
|
|
us := strings.Split(u, "-")
|
|
|
@@ -177,8 +179,6 @@ func getAppPayPrepayId(outTradeNo string, totalPrice int64, body, notifyUrl, rem
|
|
|
appId := beego.AppConfig.String("WxFohowAndroAppAppId") //获取App渠道appId
|
|
|
mechantInfo := GetMechantInfo(payCode) //商户号配置信息
|
|
|
mchProxy := getMchProxyInitClient(payCode, order_model.SOURCE_APP)
|
|
|
-
|
|
|
- outTradeNo = fmt.Sprintf("%s_%d", outTradeNo, time.Now().Unix())
|
|
|
u := uuid.NewV4().String()
|
|
|
us := strings.Split(u, "-")
|
|
|
nonce_str := strings.Join(us, "")
|