mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
编辑用户验证
This commit is contained in:
parent
0dcff8298d
commit
ffe1252595
@ -378,6 +378,12 @@ class User extends AuthController
|
||||
['spread_open', 1]
|
||||
]);
|
||||
if (!$id) return app('json')->fail(100100);
|
||||
if (!$data['real_name']) {
|
||||
return app('json')->fail(410245);
|
||||
}
|
||||
if (!$data['phone']) {
|
||||
return app('json')->fail(410245);
|
||||
}
|
||||
if ($data['phone']) {
|
||||
if (!preg_match("/^1[3456789]\d{9}$/", $data['phone'])) return app('json')->fail(400252);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user