diff --git a/framework/base/router.class.php b/framework/base/router.class.php index a42728c9e1..b057e50c31 100644 --- a/framework/base/router.class.php +++ b/framework/base/router.class.php @@ -1657,7 +1657,7 @@ class baseRouter /* 开始拼装代码。Prepare the codes. */ $modelLines = "getModulePath('', '$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. */