feat: 修复 TaskController 中用户手机号更新逻辑,确保信息正确保存
This commit is contained in:
parent
b7d32a74e7
commit
06ea9ca773
|
@ -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([], '您已登陆');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue