From 75ac15209205ed6faa54ce31d7501dbad7f798b5 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 15 Sep 2022 15:47:46 +0800 Subject: [PATCH] s --- app/controller/Wechat.php | 2 +- app/view/wechat/payment.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index e2283bb..f55a625 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -129,7 +129,7 @@ class Wechat 'openid' => $user->openid, ]); $prepayId = $unify['prepay_id']; - $jssdk = $payment->jssdk->bridgeConfig($prepayId); + $jssdk = $payment->jssdk->bridgeConfig($prepayId, false); return View::fetch('', ['jssdk' => $jssdk]); } diff --git a/app/view/wechat/payment.html b/app/view/wechat/payment.html index e8e280a..a7a5b6c 100644 --- a/app/view/wechat/payment.html +++ b/app/view/wechat/payment.html @@ -39,7 +39,7 @@ } WeixinJSBridge.invoke( 'getBrandWCPayRequest', - {$jssdk}, + {$jssdk|json_encode}, function (res) { if (res.err_msg == "get_brand_wcpay_request:ok") { setTimeout(function () {