正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -80,7 +80,7 @@ class TemplateLog extends Command | @@ -80,7 +80,7 @@ class TemplateLog extends Command | ||
| 80 | * @time :2024/11/13 16:19 | 80 | * @time :2024/11/13 16:19 |
| 81 | */ | 81 | */ |
| 82 | public function deleteUserLog(){ | 82 | public function deleteUserLog(){ |
| 83 | - $date = date('Y-m-d H:i:s', strtotime('-30 days')); | 83 | + $date = date('Y-m-d H:i:s', strtotime('-60 days')); |
| 84 | $userLogModel = new UserLog(); | 84 | $userLogModel = new UserLog(); |
| 85 | return $userLogModel->del(['created_at'=>['<=',$date]]); | 85 | return $userLogModel->del(['created_at'=>['<=',$date]]); |
| 86 | } | 86 | } |
-
请 注册 或 登录 后发表评论