|
|
@ -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 |
|
|
|