Explorar o código

修改空间命名

liaofei %!s(int64=2) %!d(string=hai) anos
pai
achega
d02cbd6d99
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      crmeb/app/services/system/SystemCrudServices.php

+ 1 - 1
crmeb/app/services/system/SystemCrudServices.php

@@ -536,7 +536,7 @@ class SystemCrudServices extends BaseServices
         $controller = app()->make(Controller::class);
         $controller->setFilePathName($filePath['controller'] ?? '')->setbasePath($basePath)->handle($tableName, [
             'usePath' => $service->getUsePath(),
-            'validateName' => '\\' . $validate->getUsePath() . '::class',
+            'validateName' => '\\' . str_replace('/', '\\', $validate->getUsePath()) . '::class',
             'field' => array_column($options['fromField'], 'field'),
         ]);
         //生成路由