* refactor

This commit is contained in:
柴德庆
2022-10-17 05:20:01 +00:00
parent f01a04b242
commit ea7eea68d8
+1 -4
View File
@@ -789,10 +789,7 @@ EOT;
{
$filePath = helper::safe64Decode($filePath);
$fileBasePath = realpath(dirname($filePath));
if(strpos($fileBasePath, $this->app->appRoot . 'module') !== 0 && strpos($fileBasePath, $this->app->appRoot . 'extension') !== 0)
{
return;
}
if(strpos($fileBasePath, $this->app->appRoot . 'module') !== 0 && strpos($fileBasePath, $this->app->appRoot . 'extension') !== 0) return;
if($action == 'extendModel')
{
$method = $this->api->getMethod($filePath, 'Model');