user:clear
parent
f4baac8378
commit
2a2c467291
|
|
@ -112,13 +112,13 @@ class MiniprogramController extends Controller
|
||||||
$old_user = User::where('phone', $phone)->where('status', User::STATUS_ACTIVE)->where('id', '!=', $user->id)->first();
|
$old_user = User::where('phone', $phone)->where('status', User::STATUS_ACTIVE)->where('id', '!=', $user->id)->first();
|
||||||
if ($old_user) {
|
if ($old_user) {
|
||||||
// 禁用新用户
|
// 禁用新用户
|
||||||
throw new BizException('手机号已经注册');
|
// throw new BizException('手机号已经注册');
|
||||||
// $user->update([
|
// $user->update([
|
||||||
// 'phone' => '',
|
// 'phone' => '',
|
||||||
// 'status' => User::STATUS_DISABLED,
|
// 'status' => User::STATUS_DISABLED,
|
||||||
// 'status_remark' => '手机号重复: ' . $phone
|
// 'status_remark' => '手机号重复: ' . $phone
|
||||||
// ]);
|
// ]);
|
||||||
// $user = $old_user;
|
$user = $old_user;
|
||||||
} else {
|
} else {
|
||||||
$user->update([
|
$user->update([
|
||||||
'phone' => $phone,
|
'phone' => $phone,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue