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); } /**