This commit is contained in:
aozhiwei 2020-03-18 20:12:32 +08:00
parent 16bb1a0b53
commit dcfb40db7b

View File

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