@@ -23,7 +23,6 @@ |
||
| 23 | 23 | /** |
| 24 | 24 | * Create an instance of the EntWeChat for the given authorizer. |
| 25 | 25 | * |
| 26 | - * @param string $corpId Authorizer CorpId |
|
| 27 | 26 | * @param string $permanentCode Authorizer permanent-code |
| 28 | 27 | * |
| 29 | 28 | * @return \EntWeChat\Foundation\Application |
@@ -31,8 +31,8 @@ |
||
| 31 | 31 | public function createAuthorizerApplication($authorizerCorpId, $permanentCode) |
| 32 | 32 | { |
| 33 | 33 | $this->fetch('authorization') |
| 34 | - ->setAuthorizerCorpId($authorizerCorpId) |
|
| 35 | - ->setAuthorizerPermanentCode($permanentCode); |
|
| 34 | + ->setAuthorizerCorpId($authorizerCorpId) |
|
| 35 | + ->setAuthorizerPermanentCode($permanentCode); |
|
| 36 | 36 | |
| 37 | 37 | $application = $this->fetch('app'); |
| 38 | 38 | $application['access_token'] = $this->fetch('authorizer_access_token'); |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param int|null $order |
| 23 | 23 | * @param int|null $partyId |
| 24 | 24 | * |
| 25 | - * @return int |
|
| 25 | + * @return \EntWeChat\Support\Collection |
|
| 26 | 26 | */ |
| 27 | 27 | public function create($name, $parentId, $order = null, $partyId = null) |
| 28 | 28 | { |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * List all Departments. |
| 41 | 41 | * |
| 42 | - * @return array |
|
| 42 | + * @return \EntWeChat\Support\Collection |
|
| 43 | 43 | */ |
| 44 | 44 | public function lists($partyId = null) |
| 45 | 45 | { |
@@ -54,9 +54,8 @@ discard block |
||
| 54 | 54 | * Update a Department. |
| 55 | 55 | * |
| 56 | 56 | * @param int $partyId |
| 57 | - * @param array $name |
|
| 58 | 57 | * |
| 59 | - * @return bool |
|
| 58 | + * @return \EntWeChat\Support\Collection |
|
| 60 | 59 | */ |
| 61 | 60 | public function update($partyId, array $partyInfo = []) |
| 62 | 61 | { |
@@ -68,9 +67,8 @@ discard block |
||
| 68 | 67 | /** |
| 69 | 68 | * Delete Department. |
| 70 | 69 | * |
| 71 | - * @param int $groupId |
|
| 72 | 70 | * |
| 73 | - * @return bool |
|
| 71 | + * @return \EntWeChat\Support\Collection |
|
| 74 | 72 | */ |
| 75 | 73 | public function delete($partyId) |
| 76 | 74 | { |
@@ -63,10 +63,10 @@ |
||
| 63 | 63 | protected function refreshToken() |
| 64 | 64 | { |
| 65 | 65 | $token = $this->authorization->getApi() |
| 66 | - ->getAuthorizerToken( |
|
| 67 | - $this->authorization->getAuthorizerCorpId(), |
|
| 68 | - $this->authorization->getAuthorizerPermanentCode() |
|
| 69 | - ); |
|
| 66 | + ->getAuthorizerToken( |
|
| 67 | + $this->authorization->getAuthorizerCorpId(), |
|
| 68 | + $this->authorization->getAuthorizerPermanentCode() |
|
| 69 | + ); |
|
| 70 | 70 | |
| 71 | 71 | $this->authorization->setAuthorizerAccessToken($token['access_token'], $token['expires_in'] - 1500); |
| 72 | 72 | |