Jerry 6 gadi atpakaļ
vecāks
revīzija
56ac18078f
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      wechat_servier_api.go

+ 3 - 3
wechat_servier_api.go

@@ -98,10 +98,10 @@ func VerifyPayResultSign(apiKey string, signType string, notifyRsp *WeChatNotify
 	body.Set("time_end", notifyRsp.TimeEnd)
 
 	newBody := make(BodyMap)
-	for k, v := range body {
-		vStr := convert2String(v)
+	for key := range body {
+		vStr := body.Get(key)
 		if vStr != null && vStr != "0" {
-			newBody.Set(k, v)
+			newBody.Set(key, vStr)
 		}
 	}