feat: 新增

This commit is contained in:
陈狼 2025-02-22 21:20:17 +08:00
parent 0cf7f6be1e
commit 08f88b6679
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class Task4
// echo date('Y-m-d H:i:s')."\n";
// });
// // 每天凌晨0点执行
new Crontab('*/5 * * * * *', function () {
new Crontab('0 0 * * * *', function () {
echo date('Y-m-d H:i:s')."\n";
//把user里所有数据的today_num全部变成0
User::where('today_num','>',0)->update(['today_num'=>0]);