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; }