@@ 38-47 (lines=10) @@ | ||
35 | * |
|
36 | * @return \EntWeChat\Support\Collection |
|
37 | */ |
|
38 | public function getAuthorizerInfo($authorizerCorpId, $permanentCode) |
|
39 | { |
|
40 | $params = [ |
|
41 | 'suite_id' => $this->getSuiteId(), |
|
42 | 'auth_corpid' => $authorizerCorpId, |
|
43 | 'permanent_code' => $permanentCode, |
|
44 | ]; |
|
45 | ||
46 | return $this->parseJSON('json', [self::GET_AUTH_INFO, $params]); |
|
47 | } |
|
48 | ||
49 | /** |
|
50 | * @param null $authCode |
|
@@ 54-62 (lines=9) @@ | ||
51 | * |
|
52 | * @return \EntWeChat\Support\Collection |
|
53 | */ |
|
54 | public function getAuthorizationInfo($authCode = null) |
|
55 | { |
|
56 | $params = [ |
|
57 | 'suite_id' => $this->getSuiteId(), |
|
58 | 'auth_code' => $authCode ?: $this->request->get('auth_code'), |
|
59 | ]; |
|
60 | ||
61 | return $this->parseJSON('json', [self::GET_PERMANENT_TOKEN, $params]); |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * @param $preAuthCode |
|
@@ 86-95 (lines=10) @@ | ||
83 | * |
|
84 | * @return \EntWeChat\Support\Collection |
|
85 | */ |
|
86 | public function getAuthorizerToken($authorizerCorpId, $permanentCode) |
|
87 | { |
|
88 | $params = [ |
|
89 | 'suite_id' => $this->getSuiteId(), |
|
90 | 'auth_corpid' => $authorizerCorpId, |
|
91 | 'permanent_code' => $permanentCode, |
|
92 | ]; |
|
93 | ||
94 | return $this->parseJSON('json', [self::GET_CORP_TOKEN, $params]); |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * @param $providerCorpId |