diff --git a/PayServer/src/base/platApi/qqApi.go b/PayServer/src/base/platApi/qqApi.go index 363ff99..93ae274 100755 --- a/PayServer/src/base/platApi/qqApi.go +++ b/PayServer/src/base/platApi/qqApi.go @@ -86,11 +86,11 @@ 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)) + err := json.Unmarshal(raw_data, &req) req.ZoneId = "1" 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)) if err != nil {