修复ws账户不在后台管理系统里面 显示在线问题

This commit is contained in:
lingling 2025-02-22 21:30:54 +08:00
parent 6ec59dfaa1
commit 752074a709
2 changed files with 4 additions and 1 deletions

View File

@ -85,6 +85,7 @@ class SendCode
return 2;
}
if($responseData['code'] == 2){
Log::warning("ws 在第三方api不存在 ws号".$phone);
return 3;
}
return -1;

View File

@ -96,7 +96,9 @@ class Task2
if ($status == 3) {
// 如果账户不存在直接删除
// $value->delete();
Log::warning("ws 在第三方api不存在 ws号".$value->phone);
$value->status = 0;
$value->last_time = $currentTimestamp;
$value->save();
}
// UserPhoneLogDao::setOnlineTimeByPhone($value->phone, $status, $currentTimestamp);
// $value->last_time = $currentTimestamp;