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