From b071bf6ede43c32e56073fbb71de2b6e43082deb Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 19 Sep 2022 10:43:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Wechat.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index eb98351..b386ed9 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -102,6 +102,9 @@ class Wechat $clientToken = Request::get('token'); $orderId = Request::get('order_id'); $callback = Request::get('callback'); + $sep = str_contains($callback, '?') ? '&' : '?'; + $callback = $callback.$sep.'refresh=true'; + if ($clientToken) { $tk = json_decode(authcode($clientToken), true); $userId = $tk['userid'];