From dcfb40db7b1da504ca87c160c4d51ddb347b71c7 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 18 Mar 2020 20:12:32 +0800 Subject: [PATCH] 1 --- PayServer/src/base/platApi/qqApi.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PayServer/src/base/platApi/qqApi.go b/PayServer/src/base/platApi/qqApi.go index 00e4f0e..39dcc37 100755 --- a/PayServer/src/base/platApi/qqApi.go +++ b/PayServer/src/base/platApi/qqApi.go @@ -86,6 +86,9 @@ func QQPrePay(openid string, appid string, zone string, amt string, goodId strin value.Set("sig", sign) req := &QQPrePayReq{}; raw_data, _ := json.Marshal(util.UrlValuesToMap(value)) + req.Amt = 1 + req.Ts = int(time.Now().Unix()) + req.GoodNum = 1 err := json.Unmarshal(raw_data, &req) data, _ := json.Marshal(req) resp, err := http.Post(u, "application/json;charset=UTF-8", bytes.NewReader(data))