From 2072a395a6bbf36d12dc5da99adb1fed2e07acb6 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 17 May 2016 16:08:09 +0800 Subject: [PATCH] =?UTF-8?q?App=E7=B1=BBmodule=E6=96=B9=E6=B3=95=E6=94=B9?= =?UTF-8?q?=E4=B8=BApublic=20=E5=8F=AF=E4=BB=A5=E5=9C=A8=E9=97=AD=E5=8C=85?= =?UTF-8?q?=E4=B8=AD=E7=9B=B4=E6=8E=A5=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/think/App.php b/library/think/App.php index 3c6440db..db8d55fd 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -192,8 +192,11 @@ class App } // 执行 模块/控制器/操作 - private static function module($result, $config) + public static function module($result, $config) { + if (is_string($result)) { + $result = explode('/', $result); + } if (APP_MULTI_MODULE) { // 多模块部署 $module = strtolower($result[0] ?: $config['default_module']);