@@ -55,7 +55,7 @@ |
||
| 55 | 55 | */ |
| 56 | 56 | protected function getCacheKey(): string |
| 57 | 57 | { |
| 58 | - return 'easywechat.open_work.suite_ticket.' . $this->app['config']['corp_id']; |
|
| 58 | + return 'easywechat.open_work.suite_ticket.'.$this->app['config']['corp_id']; |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | } |
| 62 | 62 | \ No newline at end of file |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * @param String $permanent_code |
| 46 | 46 | * @param Application $component |
| 47 | 47 | */ |
| 48 | - public function __construct(Container $app, String $auth_corpid, String $permanent_code,Application $component) |
|
| 48 | + public function __construct(Container $app, String $auth_corpid, String $permanent_code, Application $component) |
|
| 49 | 49 | { |
| 50 | 50 | $this->auth_corpid = $auth_corpid; |
| 51 | 51 | $this->permanent_code = $permanent_code; |
@@ -19,8 +19,8 @@ |
||
| 19 | 19 | public function __construct(string $auth_corpid, string $permanent_code, OpenWork $component, array $prepends = []) |
| 20 | 20 | { |
| 21 | 21 | parent::__construct($component->getConfig(), $prepends + [ |
| 22 | - 'access_token' => function ($app) use ($auth_corpid, $permanent_code,$component) { |
|
| 23 | - return new AccessToken($app, $auth_corpid, $permanent_code,$component); |
|
| 22 | + 'access_token' => function ($app) use ($auth_corpid, $permanent_code, $component) { |
|
| 23 | + return new AccessToken($app, $auth_corpid, $permanent_code, $component); |
|
| 24 | 24 | } |
| 25 | 25 | ]); |
| 26 | 26 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | 'pre_auth_code' => $this->getPreAuthCode()['pre_auth_code'], |
| 31 | 31 | 'state' => $state || rand() |
| 32 | 32 | ]; |
| 33 | - return 'https://open.work.weixin.qq.com/3rdapp/install?' . http_build_query($params); |
|
| 33 | + return 'https://open.work.weixin.qq.com/3rdapp/install?'.http_build_query($params); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | 'scope' => $scope, |
| 119 | 119 | 'state' => $state || rand() |
| 120 | 120 | ]; |
| 121 | - return 'https://open.weixin.qq.com/connect/oauth2/authorize?' . http_build_query($params) . '#wechat_redirect'; |
|
| 121 | + return 'https://open.weixin.qq.com/connect/oauth2/authorize?'.http_build_query($params).'#wechat_redirect'; |
|
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | 'usertype' => $usertype, |
| 34 | 34 | 'state' => $state || rand() |
| 35 | 35 | ]; |
| 36 | - return 'https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?' . http_build_query($params); |
|
| 36 | + return 'https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?'.http_build_query($params); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function getRegisterUri($register_code) |
| 60 | 60 | { |
| 61 | 61 | $params = ['register_code' => $register_code]; |
| 62 | - return 'https://open.work.weixin.qq.com/3rdservice/wework/register?' . http_build_query($params); |
|
| 62 | + return 'https://open.work.weixin.qq.com/3rdservice/wework/register?'.http_build_query($params); |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | |