From b436f50fed1e17670203ef4b7e28cde65460268c Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Tue, 1 Aug 2023 01:32:35 +0800 Subject: [PATCH] Update SystemLog.php --- app/admin/model/SystemLog.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/admin/model/SystemLog.php b/app/admin/model/SystemLog.php index e69d767..d399d1f 100644 --- a/app/admin/model/SystemLog.php +++ b/app/admin/model/SystemLog.php @@ -2,6 +2,7 @@ namespace app\admin\model; +use app\admin\service\SystemLogService; use app\common\model\TimeModel; class SystemLog extends TimeModel @@ -15,6 +16,7 @@ class SystemLog extends TimeModel public function setMonth($month) { + SystemLogService::instance()->detectTable(); $this->name = 'system_log_' . $month; return $this; }