This commit is contained in:
2022-09-15 15:47:46 +08:00
parent c606507449
commit 75ac152092
2 changed files with 2 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ class Wechat
'openid' => $user->openid, 'openid' => $user->openid,
]); ]);
$prepayId = $unify['prepay_id']; $prepayId = $unify['prepay_id'];
$jssdk = $payment->jssdk->bridgeConfig($prepayId); $jssdk = $payment->jssdk->bridgeConfig($prepayId, false);
return View::fetch('', ['jssdk' => $jssdk]); return View::fetch('', ['jssdk' => $jssdk]);
} }

View File

@@ -39,7 +39,7 @@
} }
WeixinJSBridge.invoke( WeixinJSBridge.invoke(
'getBrandWCPayRequest', 'getBrandWCPayRequest',
{$jssdk}, {$jssdk|json_encode},
function (res) { function (res) {
if (res.err_msg == "get_brand_wcpay_request:ok") { if (res.err_msg == "get_brand_wcpay_request:ok") {
setTimeout(function () { setTimeout(function () {