From 47b7b8cf2ffb596c4a0d77f5c6b6300b6d3deeaa Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Wed, 10 Apr 2024 18:41:30 +0800 Subject: [PATCH] 1 --- app/common/library/wxserver/Server.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 74a34685..2b859cc4 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -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 []; }