|
...
|
...
|
@@ -80,7 +80,7 @@ class TemplateLog extends Command |
|
|
|
* @time :2024/11/13 16:19
|
|
|
|
*/
|
|
|
|
public function deleteUserLog(){
|
|
|
|
$date = date('Y-m-d H:i:s', strtotime('-30 days'));
|
|
|
|
$date = date('Y-m-d H:i:s', strtotime('-60 days'));
|
|
|
|
$userLogModel = new UserLog();
|
|
|
|
return $userLogModel->del(['created_at'=>['<=',$date]]);
|
|
|
|
}
|
...
|
...
|
|