mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-02 07:50:37 +00:00
修复后台修改用户手机号绑定重复未作判断
This commit is contained in:
parent
b18b2aa3b2
commit
b17d02ef21
@ -387,6 +387,9 @@ class User extends AuthController
|
||||
if ($data['phone']) {
|
||||
if (!preg_match("/^1[3456789]\d{9}$/", $data['phone'])) return app('json')->fail(400252);
|
||||
}
|
||||
if ($this->services->count(['phone' => $data['phone'], 'is_del' => 0])) {
|
||||
return app('json')->fail(400314);
|
||||
}
|
||||
if ($data['card_id']) {
|
||||
if (!check_card($data['card_id'])) return app('json')->fail(400315);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user