* Simplify the codes to load the tao file by the loadModel function.

This commit is contained in:
Guan Xiying
2022-10-19 16:36:22 +08:00
parent 66d76e5d65
commit 50c2fd653c
+1 -2
View File
@@ -31,9 +31,8 @@ class model extends baseModel
{
parent::__construct($appName);
$className = strtolower(get_class($this));
$moduleName = $this->app->getModuleName();
if($className == $moduleName . 'model' || $className == 'ext' . $moduleName . 'model') $this->loadModel($moduleName, $appName, 'tao');
$this->loadModel($moduleName, $appName, 'tao');
}
/**