|
|
@ -54,7 +54,7 @@ class Server |
|
|
|
public function getComponentAccessToken() |
|
|
|
public function getComponentAccessToken() |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (Cache::has('ComponentAccessToken')) { |
|
|
|
if (Cache::has('ComponentAccessToken')) { |
|
|
|
return Cache::get('ComponentAccessToken'); |
|
|
|
//return Cache::get('ComponentAccessToken'); |
|
|
|
} |
|
|
|
} |
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/component/api_component_token'; |
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/component/api_component_token'; |
|
|
|
$ticket = Cache::get('component_verify_ticket'); |
|
|
|
$ticket = Cache::get('component_verify_ticket'); |
|
|
|