wang hou sheng 10 months ago
parent 768b2bbb66
commit ddc46365c4
  1. 3
      app/common/library/wxserver/Server.php

@ -227,9 +227,10 @@ class Server
public function getTemplatedraftlist() public function getTemplatedraftlist()
{ {
if (Cache::has('wx_server_drafttemplatelist')) { if (Cache::has('wx_server_drafttemplatelist')) {
//return Cache::get('wx_server_drafttemplatelist'); return Cache::get('wx_server_drafttemplatelist');
} }
$token = $this->getComponentAccessToken(); $token = $this->getComponentAccessToken();
return [$token];
$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;

Loading…
Cancel
Save