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 }