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)) {