@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | $wechat['wechat']['component'] = [ |
41 | 41 | 'id' => $app['config']['component_app_id'], |
42 | 42 | 'token' => $app['config']['token'], |
43 | - ] ; |
|
43 | + ]; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | $socialite = (new Socialite($wechat))->create('wechat'); |
47 | 47 | |
48 | - $scopes = (array)$app['config']->get('oauth.scopes', ['snsapi_userinfo']); |
|
48 | + $scopes = (array) $app['config']->get('oauth.scopes', ['snsapi_userinfo']); |
|
49 | 49 | |
50 | 50 | if (!empty($scopes)) { |
51 | 51 | $socialite->scopes($scopes); |
@@ -70,6 +70,6 @@ discard block |
||
70 | 70 | } |
71 | 71 | $baseUrl = $app['request']->getSchemeAndHttpHost(); |
72 | 72 | |
73 | - return $baseUrl . '/' . ltrim($callback, '/'); |
|
73 | + return $baseUrl.'/'.ltrim($callback, '/'); |
|
74 | 74 | } |
75 | 75 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException |
49 | 49 | * @throws \GuzzleHttp\Exception\GuzzleException |
50 | 50 | */ |
51 | - public function unbind(string $wechatId = null, string $userStr = null) |
|
51 | + public function unbind(string $wechatId = null, string $userStr = null) |
|
52 | 52 | { |
53 | 53 | return $this->httpPostJson('wxa/unbind_tester', [ |
54 | 54 | ($userStr ? 'userstr' : 'wechatid') => $userStr ?? $wechatId, |
@@ -49,14 +49,14 @@ |
||
49 | 49 | * @throws \GuzzleHttp\Exception\GuzzleException |
50 | 50 | */ |
51 | 51 | public function unbind(string $wechatId = null, string $userStr = null) |
52 | - { |
|
52 | + { |
|
53 | 53 | return $this->httpPostJson('wxa/unbind_tester', [ |
54 | 54 | ($userStr ? 'userstr' : 'wechatid') => $userStr ?? $wechatId, |
55 | 55 | ]); |
56 | 56 | } |
57 | 57 | |
58 | 58 | public function unbindWithUserStr(string $userStr) |
59 | - { |
|
59 | + { |
|
60 | 60 | return $this->httpPostJson('wxa/unbind_tester', [ |
61 | 61 | 'userstr' => $userStr, |
62 | 62 | ]); |