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);