This commit is contained in:
@@ -11,20 +11,13 @@ class Wechat
|
||||
|
||||
private function initWechat()
|
||||
{
|
||||
$config = [
|
||||
'app_id' => 'wx3793a03c18984e4f',
|
||||
'secret' => 'f1c242f4f28f735d4687abb469072xxx',
|
||||
'token' => 'TestToken',
|
||||
'response_type' => 'array',
|
||||
];
|
||||
$this->app = Factory::officialAccount($config);
|
||||
$this->app = Factory::officialAccount(config('wechat'));
|
||||
}
|
||||
|
||||
public function config()
|
||||
{
|
||||
$this->initWechat();
|
||||
$response = $this->app->oauth->scopes(['snsapi_userinfo'])->redirect();
|
||||
return $response->send();
|
||||
redirect($this->app->oauth->scopes(['snsapi_userinfo'])->redirect());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user