This commit is contained in:
weiz 2024-04-10 15:53:41 +08:00
parent 21510302a8
commit fd5146f70f

View File

@ -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 '负责人信息不存在';