From 7d2146b6c2e526893115060bbaf579e89a6587f3 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 17 May 2023 17:39:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/local_wechat/api.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/local_wechat/api.go b/lib/local_wechat/api.go index a37486f..1075271 100644 --- a/lib/local_wechat/api.go +++ b/lib/local_wechat/api.go @@ -142,17 +142,8 @@ func TradePcPay(client *wechat.Client, subject, orderID, amount, notifyUrl, prod _ = zhios_pay_logx.Warn(err) return nil, err } - _, err = wechat.VerifySign(client.ApiKey, wechat.SignType_MD5, wxRsp) - if err != nil { - _ = zhios_pay_logx.Warn(err) - return nil, err - } - timeStamp := strconv.FormatInt(time.Now().Unix(), 10) - packages := "prepay_id=" + wxRsp.PrepayId - paySign := wechat.GetH5PaySign(client.AppId, wxRsp.NonceStr, packages, wechat.SignType_MD5, timeStamp, client.ApiKey) - fmt.Println("paySign===", paySign) r := map[string]string{ - "redirect_url": wxRsp.MwebUrl, + "code_url": wxRsp.CodeUrl, } return r, nil }