wang hou sheng 8 months ago
parent ddc46365c4
commit 4d20e24883
  1. 1
      app/common/library/wxserver/Server.php

@ -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'];

Loading…
Cancel
Save