|
|
@ -65,6 +65,7 @@ class Server |
|
|
|
$data['component_verify_ticket'] = $ticket; |
|
|
|
$data['component_verify_ticket'] = $ticket; |
|
|
|
$result = $this->curlPost($url, json_encode($data), 10); |
|
|
|
$result = $this->curlPost($url, json_encode($data), 10); |
|
|
|
$result = json_decode($result, true); |
|
|
|
$result = json_decode($result, true); |
|
|
|
|
|
|
|
return $result; |
|
|
|
if (!empty($result['component_access_token'])) { |
|
|
|
if (!empty($result['component_access_token'])) { |
|
|
|
Cache::set('ComponentAccessToken', $result['component_access_token'], 6200); |
|
|
|
Cache::set('ComponentAccessToken', $result['component_access_token'], 6200); |
|
|
|
return $result['component_access_token']; |
|
|
|
return $result['component_access_token']; |
|
|
|