|
|
@ -298,10 +298,12 @@ class Server |
|
|
|
public function authorizerAccessToken($appid) |
|
|
|
public function authorizerAccessToken($appid) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (Cache::has($appid . '_authorizer_access_token')) { |
|
|
|
if (Cache::has($appid . '_authorizer_access_token')) { |
|
|
|
return Cache::get($appid . '_authorizer_access_token'); |
|
|
|
//return Cache::get($appid . '_authorizer_access_token'); |
|
|
|
} |
|
|
|
} |
|
|
|
$refresh_token = $this->getRefreshToken($appid); |
|
|
|
$refresh_token = $this->getRefreshToken($appid); |
|
|
|
if ($refresh_token) { |
|
|
|
if ($refresh_token) { |
|
|
|
|
|
|
|
dump($refresh_token); |
|
|
|
|
|
|
|
exit(); |
|
|
|
$token = $this->getComponentAccessToken(); |
|
|
|
$token = $this->getComponentAccessToken(); |
|
|
|
if ($token) { |
|
|
|
if ($token) { |
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token=' . $token; |
|
|
|
$url = 'https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token=' . $token; |
|
|
|