From e278c75d6294f36d2cb361093a15fc3d9845e90a Mon Sep 17 00:00:00 2001 From: "Mr.Wang" <281762391@qq.com> Date: Fri, 15 Jan 2016 22:09:50 +0800 Subject: [PATCH] =?UTF-8?q?BIND=5FMODULE=20=E5=87=BA=E7=8E=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF=20#206?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/think/App.php b/library/think/App.php index 0459c0cf..5e421c42 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -175,6 +175,9 @@ class App private static function module($result, $config) { if (APP_MULTI_MODULE) { + if (defined('BIND_MODULE')) { + array_unshift($result, BIND_MODULE); + } // 多模块部署 $module = $result[0] ?: $config['default_module']; if ($maps = $config['url_module_map']) {