From fd9fd5bf19e80c70843342fe63d87c6ba6ea3f85 Mon Sep 17 00:00:00 2001 From: lixiaoyu <1906596264@qq.com> Date: Sat, 23 Sep 2023 17:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/plugins/payment/wxpay.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile/plugins/payment/wxpay.php b/mobile/plugins/payment/wxpay.php index d1e9694..346e457 100755 --- a/mobile/plugins/payment/wxpay.php +++ b/mobile/plugins/payment/wxpay.php @@ -242,8 +242,9 @@ class wxpay if(ua.match(/MicroMessenger/i)=="micromessenger") { wx.miniProgram.getEnv((res)=>{ if (res.miniprogram) { + $jsApiParameters=json_encode($jsApiParameters) // 在微信小程序中打开 - wx.miniProgram.navigateTo({url: \'/pages/pay/pay?paydata='.JSON.stringify($jsApiParameters).'\'}); + wx.miniProgram.navigateTo({url: \'/pages/pay/pay?paydata='.$jsApiParameters.'\'}); }else{ //false代表在公众号里 if (typeof WeixinJSBridge == "undefined")