This commit is contained in:
liaofei 2023-04-21 12:19:03 +08:00
parent 0ef348dbb3
commit cab9c83588
2 changed files with 2 additions and 1 deletions

View File

@ -207,6 +207,7 @@ class SystemCrud extends AuthController
$make = $this->services->makeFile($info->table_name, $routeName, false, [
'menuName' => $info->name,
'modelName' => $info->model_name,
'key' => $key,
'softDelete' => $softDelete,
'fromField' => $info->field['fromField'] ?? [],

View File

@ -530,7 +530,7 @@ class SystemCrudServices extends BaseServices
$service->setFilePathName($filePath['service'] ?? '')->setbasePath($basePath)->handle($tableName, [
'field' => $options['fromField'],
'usePath' => $dao->getUsePath(),
'modelName' => $options['modelName'],
'modelName' => $options['modelName'] ?? '',
]);
//生成验证器
$validate = app()->make(Validate::class);