diff --git a/process/Task3.php b/process/Task3.php index 453a9ae..797899b 100644 --- a/process/Task3.php +++ b/process/Task3.php @@ -47,10 +47,10 @@ class Task3 // echo date('Y-m-d H:i:s')."\n"; // }); // // 每5秒执行一次 - new Crontab('0 */5 * * * *', function () { + new Crontab('0 0 * * * *', function () { //获取在线时间超过6小时的用户 $today = date('Y-m-d'); - $UserPhone = UserPhone::where('score', '>=', 120)->where('score', '<',140)->get(); + $UserPhone = UserPhone::where('day_score', '>=', 120)->where('day_score', '<',140)->get(); //判断用户绑定Whatsapp首次登录 foreach ($UserPhone as $key => $value) { $user_id = $value->user_id; @@ -72,7 +72,7 @@ class Task3 // ActiveUsers.c $activeUsers = ActiveUsers::create([ 'user_id' => $parent->id, - 'phome' => $UserPhone->phone, + 'phonne' => $UserPhone->phone, 'income' => $UserPhone->day_score, ]);