1、自动归档
2、链接抓取去重 3、状态筛选
This commit is contained in:
@@ -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]);
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user