|
|
|
@ -283,8 +283,6 @@ class Server |
|
|
|
|
public function authorizerAccessToken($appid) |
|
|
|
|
{ |
|
|
|
|
if (Cache::has($appid . '_authorizer_access_token')) { |
|
|
|
|
dump(Cache::get($appid . '_authorizer_access_token')); |
|
|
|
|
exit(); |
|
|
|
|
return Cache::get($appid . '_authorizer_access_token'); |
|
|
|
|
} |
|
|
|
|
$refresh_token = $this->getRefreshToken($appid); |
|
|
|
@ -556,27 +554,11 @@ class Server |
|
|
|
|
public function getAuditStatus($appid, $auditid) |
|
|
|
|
{ |
|
|
|
|
$access_token = $this->authorizerAccessToken($appid); |
|
|
|
|
if ($access_token) { |
|
|
|
|
dump('token为真'); |
|
|
|
|
} else { |
|
|
|
|
dump('token为假'); |
|
|
|
|
dump($access_token); |
|
|
|
|
} |
|
|
|
|
if ($auditid) { |
|
|
|
|
dump('审核id为真'); |
|
|
|
|
} else { |
|
|
|
|
dump('审核id为假'); |
|
|
|
|
} |
|
|
|
|
exit(); |
|
|
|
|
if ($access_token && $auditid) { |
|
|
|
|
dump('11111'); |
|
|
|
|
exit(); |
|
|
|
|
$url = 'https://api.weixin.qq.com/wxa/get_auditstatus?access_token=' . $access_token; |
|
|
|
|
$data['auditid'] = $auditid; |
|
|
|
|
$result = $this->curlPost($url, json_encode($data)); |
|
|
|
|
$result = json_decode($result, true); |
|
|
|
|
dump($result); |
|
|
|
|
exit(); |
|
|
|
|
return $result; |
|
|
|
|
if (!empty($result) && intval($result['errcode']) == 0 && isset($result['status'])) { |
|
|
|
|
$status = intval($result['status']); |
|
|
|
@ -599,9 +581,6 @@ class Server |
|
|
|
|
} |
|
|
|
|
return $result; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
dump('2222'); |
|
|
|
|
exit(); |
|
|
|
|
} |
|
|
|
|
return []; |
|
|
|
|
} |
|
|
|
|