From 351595a6b09a193eae6a37c1c581feff281287f6 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:46:16 +0800 Subject: [PATCH] 1 --- app/common/library/wxserver/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 8b8276bf..9cc20453 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -246,7 +246,6 @@ class Server $list = []; if ($token) { $url = 'https://api.weixin.qq.com/wxa/gettemplatedraftlist?access_token=' . $token; - return [$url]; $result = $this->curlGet($url); $result = json_decode($result, true); if ($result && !empty($result['draft_list'])) { @@ -331,6 +330,7 @@ class Server $list = []; if ($token) { $url = 'https://api.weixin.qq.com/wxa/gettemplatelist?access_token=' . $token; + return [$url]; $data['template_type'] = 1; $result = $this->curlGet($url, $data); $result = json_decode($result, true);