@@ -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 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | */ |
71 | 71 | public function getEndpoint(): string |
72 | 72 | { |
73 | - return 'cgi-bin/service/get_corp_token?' . http_build_query([ |
|
73 | + return 'cgi-bin/service/get_corp_token?'.http_build_query([ |
|
74 | 74 | 'suite_access_token' => $this->component['suite_access_token']->getToken()['suite_access_token'], |
75 | 75 | ]); |
76 | 76 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | 'pre_auth_code' => $this->getPreAuthCode()['pre_auth_code'], |
47 | 47 | 'state' => $state |
48 | 48 | ]; |
49 | - return 'https://open.work.weixin.qq.com/3rdapp/install?' . http_build_query($params); |
|
49 | + return 'https://open.work.weixin.qq.com/3rdapp/install?'.http_build_query($params); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | 'scope' => $scope, |
154 | 154 | 'state' => $state |
155 | 155 | ]; |
156 | - return 'https://open.weixin.qq.com/connect/oauth2/authorize?' . http_build_query($params) . '#wechat_redirect'; |
|
156 | + return 'https://open.weixin.qq.com/connect/oauth2/authorize?'.http_build_query($params).'#wechat_redirect'; |
|
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | 'state' => $state |
54 | 54 | ]; |
55 | 55 | |
56 | - return 'https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?' . http_build_query($params); |
|
56 | + return 'https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?'.http_build_query($params); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | { |
87 | 87 | $registerCode || $registerCode = $this->getRegisterCode()['register_code']; |
88 | 88 | $params = ['register_code' => $registerCode]; |
89 | - return 'https://open.work.weixin.qq.com/3rdservice/wework/register?' . http_build_query($params); |
|
89 | + return 'https://open.work.weixin.qq.com/3rdservice/wework/register?'.http_build_query($params); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 |
@@ -107,8 +107,7 @@ discard block |
||
107 | 107 | string $adminName = '', |
108 | 108 | string $adminMobile = '', |
109 | 109 | string $state = '' |
110 | - ) |
|
111 | - { |
|
110 | + ) { |
|
112 | 111 | $params = []; |
113 | 112 | $params['template_id'] = $this->app['config']['reg_template_id']; |
114 | 113 | !empty($corpName) && $params['corp_name'] = $corpName; |
@@ -163,8 +162,7 @@ discard block |
||
163 | 162 | array $allowUser = [], |
164 | 163 | array $allowParty = [], |
165 | 164 | array $allowTag = [] |
166 | - ) |
|
167 | - { |
|
165 | + ) { |
|
168 | 166 | $params = [ |
169 | 167 | "agentid" => $agentId, |
170 | 168 | "allow_user" => $allowUser, |