update
This commit is contained in:
parent
21510302a8
commit
fd5146f70f
@ -140,7 +140,9 @@ class DeptValidate extends BaseValidate
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function checkLeader($value){
|
public function checkLeader($value)
|
||||||
|
{
|
||||||
|
if (empty($value)) return true;
|
||||||
$data = Admin::where('id', $value)->findOrEmpty();
|
$data = Admin::where('id', $value)->findOrEmpty();
|
||||||
if ($data->isEmpty()) {
|
if ($data->isEmpty()) {
|
||||||
return '负责人信息不存在';
|
return '负责人信息不存在';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user