|
@@ -61,11 +61,11 @@ class Company extends Backend
|
|
|
|
|
|
$adminmobile = input('adminmobile','');
|
|
|
if (!$adminmobile || !\think\Validate::regex($adminmobile, "^1\d{10}$")) {
|
|
|
- $this->error('最高级管理员的手机号不正确');
|
|
|
+ abort(500,'最高级管理员的手机号不正确');
|
|
|
}
|
|
|
$check = Db::name('pc_admin')->where('username',$adminmobile)->find();
|
|
|
if(!empty($check)){
|
|
|
- $this->error('该手机号已被其他管理员注册');
|
|
|
+ abort(500,'该手机号已被其他管理员注册');
|
|
|
}
|
|
|
|
|
|
//是否采用模型验证
|