<?php/* * This file is part of the overtrue/wechat. * * (c) overtrue <i@overtrue.me> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */namespaceEasyWeChat\MiniProgram\Auth;useEasyWeChat\Kernel\AccessTokenasBaseAccessToken;/** * Class AccessToken. * * @author mingyoung <mingyoungcheung@gmail.com> */classAccessTokenextendsBaseAccessToken{/** * @var string */protected$endpointToGetToken='https://api.weixin.qq.com/cgi-bin/token';/** * {@inheritdoc} */protectedfunctiongetCredentials():array{return['grant_type'=>'client_credential','appid'=>$this->app['config']['app_id'],'secret'=>$this->app['config']['secret'],];}}