修改定时任务查询账号在线逻辑查询到账户不存在不管他

This commit is contained in:
lingling 2025-02-18 22:34:11 +08:00
parent c4be4cd11e
commit 7a2fc972a5
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ use app\dao\UserPhoneLogDao;
use App\Utils\API\SendCode;
use app\model\UserPhone;
use app\dao\UserRewardDao;
use support\Log;
use Workerman\Crontab\Crontab;
/**
@ -92,7 +93,8 @@ class Task2
}
if ($status == 3) {
// 如果账户不存在直接删除
$value->delete();
// $value->delete();
Log::warning("账户不存在",$value->phone);
}
// UserPhoneLogDao::setOnlineTimeByPhone($value->phone, $status, $currentTimestamp);
// $value->last_time = $currentTimestamp;