feat: 修复 TaskController 中用户手机号更新逻辑,确保信息正确保存

This commit is contained in:
lingling 2025-03-07 19:57:44 +08:00
parent b7d32a74e7
commit 06ea9ca773
1 changed files with 7 additions and 7 deletions

View File

@ -150,13 +150,13 @@ class TaskController
$UserPhone->save();
} else {
// 本地已存在手机号,更新用户信息
// $UserPhone->user_id = $user_id;
// $UserPhone->score = 0;
// $UserPhone->status = 1;
// $UserPhone->time = 0;
// $UserPhone->last_time = time();
// $UserPhone->save();
$GetLodeLog->delete();
$UserPhone->user_id = $user_id;
$UserPhone->score = 0;
$UserPhone->status = 1;
$UserPhone->time = 0;
$UserPhone->last_time = time();
$UserPhone->save();
$GetLodeLog->delete();
return ApiResponseApp::error([], '您已登陆');
}