From c1ebe288372c9cebcd5dc3d12bb0484b54b41cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B9=BF=E6=98=8E?= Date: Fri, 25 Feb 2022 15:39:08 +0800 Subject: [PATCH] * Fix bug. --- framework/base/router.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/router.class.php b/framework/base/router.class.php index 23338a3b66..a42728c9e1 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1657,7 +1657,7 @@ class baseRouter /* 开始拼装代码。Prepare the codes. */ $modelLines = "getBasePath() . '" . str_replace($this->getBasePath(), '', $this->getModulePath($this->appName, $moduleName)) . "model.php');\n"; + $modelLines .= "helper::import(\$app->getModulePath('', '$moduleName')" . "model.php');\n"; $modelLines .= "class $tmpModelClass extends $modelClass \n{\n"; /* 将扩展文件的代码合并到代码中。Cycle all the extension files and merge them into model lines. */