From 8bfa21bacfa80e2e5aad50c84f403b914f3fe726 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Tue, 9 Apr 2024 12:03:05 +0800 Subject: [PATCH] 1 --- app/common/library/wxserver/Server.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = [];