update
This commit is contained in:
parent
f36b761638
commit
9cf0c35b1f
@ -133,4 +133,13 @@ class ConsultAcceptValidate extends BaseValidate
|
||||
return true;
|
||||
}
|
||||
|
||||
public function checkSubdirectory($value,$rule,$params): bool|string
|
||||
{
|
||||
$data = ConsultSubdirectory::where('id',$value)->where('directory_id',$params['directory_id'])->findOrEmpty();
|
||||
if($data->isEmpty()){
|
||||
return '子目录信息不存在';
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user