1、自动归档

2、链接抓取去重
3、状态筛选
This commit is contained in:
2026-01-17 16:24:02 +08:00
parent 1fe9d4e1b2
commit 85ab8e79f8
2 changed files with 26 additions and 1 deletions
+10
View File
@@ -26,6 +26,16 @@ class Task
Log::info('send follow end',[time()]);
});
// 每三个小时自动归档
new Crontab('0 0 */3 * * *', function(){
Db::table('used_car')
->where('status', 1)
->where('created_at', '<', time() - (86400*15))
->update(['status' => 3]);
});
}
}