diff --git a/src/Tool/Tools/Generate/Model/ModelGenerate.php b/src/Tool/Tools/Generate/Model/ModelGenerate.php index e7854dc318..dc4f36469a 100644 --- a/src/Tool/Tools/Generate/Model/ModelGenerate.php +++ b/src/Tool/Tools/Generate/Model/ModelGenerate.php @@ -51,6 +51,7 @@ public function generate($namespace, $database, $poolName, $prefix, $include, $e ->getArray(); // model保存路径 $modelPath = Imi::getNamespacePath($namespace); + File::createDir($modelPath); foreach($list as $item) { $table = $item['TABLE_NAME'];