self::$config['client_id'], 'client_secret' => self::$config['client_secret'], 'redirect_uri' => self::$config['redirect_uri'], 'scopes' => self::$config['scopes'] ]); } /** * APP通过code换取用户信息 * * @return array|false * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ public static function appAuth(){ $code = request()->get('code', null); var_dump($code); return self::$client->verifyIdToken($code); } /** * WEB打开授权页面(待补充) * * @return void */ public static function webAuth(){ } }