@@ -151,7 +151,7 @@ |
||
| 151 | 151 | { |
| 152 | 152 | if ($this->_user === null) { |
| 153 | 153 | $client = $this->wechat->miniProgram; |
| 154 | - $client->useOpenId = false;//使用unionid |
|
| 154 | + $client->useOpenId = false; //使用unionid |
|
| 155 | 155 | $client->validateAuthState = false; |
| 156 | 156 | $token = $client->fetchAccessToken($this->code); |
| 157 | 157 | $tokenParams = $token->getParams(); |
@@ -46,11 +46,11 @@ |
||
| 46 | 46 | public $grantTypes = [ |
| 47 | 47 | 'authorization_code' => Authorization::class, |
| 48 | 48 | 'refresh_token' => RefreshToken::class, |
| 49 | - 'client_credentials' => ClientCredentials::class,//个人账户密码 |
|
| 50 | - 'password' => UserCredentials::class,//账户密码 |
|
| 51 | - 'wechat' => WeChatCredentials::class,//微信 |
|
| 52 | - 'wechat_mini' => WeChatMiniCredentials::class,//微信 |
|
| 53 | - 'qrcode' => QRCode::class,//客户端扫码 |
|
| 49 | + 'client_credentials' => ClientCredentials::class, //个人账户密码 |
|
| 50 | + 'password' => UserCredentials::class, //账户密码 |
|
| 51 | + 'wechat' => WeChatCredentials::class, //微信 |
|
| 52 | + 'wechat_mini' => WeChatMiniCredentials::class, //微信 |
|
| 53 | + 'qrcode' => QRCode::class, //客户端扫码 |
|
| 54 | 54 | // 'urn:ietf:params:oauth:grant-type:jwt-bearer' => 'yuncms\oauth2\grant\types\JwtBearer',//JWT 客户端签名 |
| 55 | 55 | ]; |
| 56 | 56 | |