diff --git a/app/common.php b/app/common.php index dcac8726c..29547b5f2 100755 --- a/app/common.php +++ b/app/common.php @@ -151,7 +151,7 @@ function MyView($view = '', $data = []) */ function RequestModule() { - return strtolower(\think\facade\App::initialize()->http->getName()); + return strtolower(app('http')->getName()); } /**