diff --git a/process/Task2.php b/process/Task2.php index c2d0aa8..4437ff3 100644 --- a/process/Task2.php +++ b/process/Task2.php @@ -44,17 +44,16 @@ class Task2 $updateData = []; foreach ($res as $v) { + if ($v['failedReason'] !== null) { + SendCode::delWS($v['username']); + continue; + } $phone = $phoneMap[$v['username']] ?? null; if (!$phone) { continue; } - if ($v['failedReason'] !== null) { - SendCode::delWS($v['username']); - $phone->status = 2; - $updateData[] = $phone; - continue; - } + if ($phone->time > 3600 && $v['logged'] == 1) { // 计算超过 1 小时的积分