wang hou sheng 10 months ago
parent 23dfe6e107
commit 351595a6b0
  1. 2
      app/common/library/wxserver/Server.php

@ -246,7 +246,6 @@ class Server
$list = []; $list = [];
if ($token) { if ($token) {
$url = 'https://api.weixin.qq.com/wxa/gettemplatedraftlist?access_token=' . $token; $url = 'https://api.weixin.qq.com/wxa/gettemplatedraftlist?access_token=' . $token;
return [$url];
$result = $this->curlGet($url); $result = $this->curlGet($url);
$result = json_decode($result, true); $result = json_decode($result, true);
if ($result && !empty($result['draft_list'])) { if ($result && !empty($result['draft_list'])) {
@ -331,6 +330,7 @@ class Server
$list = []; $list = [];
if ($token) { if ($token) {
$url = 'https://api.weixin.qq.com/wxa/gettemplatelist?access_token=' . $token; $url = 'https://api.weixin.qq.com/wxa/gettemplatelist?access_token=' . $token;
return [$url];
$data['template_type'] = 1; $data['template_type'] = 1;
$result = $this->curlGet($url, $data); $result = $this->curlGet($url, $data);
$result = json_decode($result, true); $result = json_decode($result, true);

Loading…
Cancel
Save