Browse Source

fix:bug

token_replace
黄梓健 5 years ago
parent
commit
a6c3407ad7
  1. 4
      services/pay/order.go
  2. 3
      utils/define/config.go

4
services/pay/order.go

@ -13,8 +13,6 @@ import (
"time"
)
const CallbackOrderUrl = "https://api.ouxuanhudong.com/PcClient/common/WeChatOauthCtl/callbackOrder"
func UnifiedOrder(content, openId string, fee, goodType, userId, activityId, expireAt int64) (map[string]interface{}, error) {
client, err := Client()
if err != nil {
@ -27,7 +25,7 @@ func UnifiedOrder(content, openId string, fee, goodType, userId, activityId, exp
body["body"] = content
body["out_trade_no"] = outTradeNo
body["total_fee"] = fmt.Sprint(fee)
body["notify_url"] = CallbackOrderUrl
body["notify_url"] = define.CallbackOrderUrl
body["trade_type"] = "JSAPI"
body["nonce_str"] = nonceStr
body["sign_type"] = pay_core.SignType_MD5

3
utils/define/config.go

@ -13,9 +13,12 @@ func SetDebug(modes ...bool) {
HOST = "https://hdzj.utools.club"
H5Host = "http://ouxuanhudongtest.t.3pr.com.cn/web"
SendUrl = "https://hdzjws.utools.club/PcClient/Ws/MessageCtl/Receive"
CallbackOrderUrl = "https://hdzj.utools.club/PcClient/common/WeChatOauthCtl/callbackOrder"
}
}
var CallbackOrderUrl = "https://api.ouxuanhudong.com/PcClient/common/WeChatOauthCtl/callbackOrder"
var (
SendUrl = "https://api.ouxuanhudong.com:20182/PcClient/Connect/MessageCtl/Receive"
HOST = "https://api.ouxuanhudong.com"

Loading…
Cancel
Save