wang hou sheng 10 months ago
parent e4f8e5b709
commit 8bfa21bacf
  1. 4
      app/common/library/wxserver/Server.php

@ -242,7 +242,7 @@ class Server
if (Cache::has('wx_server_drafttemplatelist')) {
return Cache::get('wx_server_drafttemplatelist');
}
$token = $this->getStableAccessToken();
$token = $this->getComponentAccessToken();
$list = [];
if ($token) {
$url = 'https://api.weixin.qq.com/wxa/gettemplatedraftlist?access_token=' . $token;
@ -324,7 +324,7 @@ class Server
public function getTemplatelist(): array
{
if (Cache::has('wx_server_templatelist')) {
//return Cache::get('wx_server_templatelist');
return Cache::get('wx_server_templatelist');
}
$token = $this->getComponentAccessToken();
$list = [];

Loading…
Cancel
Save