diff --git a/app/controller/Wechat.php b/app/controller/Wechat.php index 6545870..be967eb 100644 --- a/app/controller/Wechat.php +++ b/app/controller/Wechat.php @@ -22,6 +22,7 @@ class Wechat public function config() { + $this->initWechat(); $response = $this->app->oauth->scopes(['snsapi_userinfo'])->redirect(); return $response->send(); }