diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index b4e6e9e9..7ded354d 100644 --- a/app/common/library/wxserver/Server.php +++ b/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 = [];