From ea7eea68d861ec2df315f5630101958f748a0b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B4=E5=BE=B7=E5=BA=86?= Date: Mon, 17 Oct 2022 05:20:01 +0000 Subject: [PATCH] * refactor --- module/api/control.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/module/api/control.php b/module/api/control.php index aa07920b29..413a4d6959 100755 --- a/module/api/control.php +++ b/module/api/control.php @@ -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');