Update SystemLog.php

This commit is contained in:
wolfcode
2023-08-01 01:32:35 +08:00
parent 5a0bf5f16b
commit b436f50fed

View File

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