*/ class AccessToken extends BaseAccessToken { /** * @var string */ protected $endpointToGetToken = 'oauth/client_token/'; /** * 配置AccessToken的 * * @return array */ protected function getCredentials(): array { return [ 'client_key' => $this->app['config']['app_id'], 'client_secret' => $this->app['config']['secret'], 'grant_type' => 'client_credential', ]; } }