From af5977255f5cc75a24429edf5843b0f06cc26d0e Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Tue, 9 Apr 2024 15:58:27 +0800 Subject: [PATCH] 1 --- app/common/library/wxserver/Server.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/common/library/wxserver/Server.php b/app/common/library/wxserver/Server.php index 9b935486..67d73276 100644 --- a/app/common/library/wxserver/Server.php +++ b/app/common/library/wxserver/Server.php @@ -272,7 +272,10 @@ class Server */ public function addTotemplate($draft_id): bool { - $templateList = $this->getTemplatelist(); + $templateList = []; + if (Cache::has('wx_server_templatelist')) { + $templateList = Cache::get('wx_server_templatelist'); + } if ($templateList) { $draft_ids = array_column($templateList, 'draft_id'); if (in_array($draft_id, $draft_ids)) {