|
|
@@ -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);
|
|
|
}
|