From ddc46365c4f173a6b8d7776ff9928a1fe19816c7 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Tue, 9 Apr 2024 11:23:54 +0800 Subject: [PATCH] 1 --- app/common/library/wxserver/Server.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index ab092a57..8df9fa4a 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -227,9 +227,10 @@ class Server public function getTemplatedraftlist() { if (Cache::has('wx_server_drafttemplatelist')) { - //return Cache::get('wx_server_drafttemplatelist'); + return Cache::get('wx_server_drafttemplatelist'); } $token = $this->getComponentAccessToken(); + return [$token]; $list = []; if ($token) { $url = 'https://api.weixin.qq.com/wxa/gettemplatedraftlist?access_token=' . $token;