From 87aa9237b53e0164226295c85a1bd7c3f5960033 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 9 Sep 2022 11:55:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=BE=AE=E4=BF=A1=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Wechat.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index 1add6a2..ec506a3 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -28,8 +28,10 @@ class Wechat */ public function url() { + $post = $GLOBALS['data']['data']['url']; + $this->initWechat(); - return redirect($this->app->oauth->scopes(['snsapi_userinfo'])->redirect()); + return $this->app->oauth->scopes(['snsapi_userinfo'])->redirect($post); } /**