diff --git a/catch/wechat/controller/Message.php b/catch/wechat/controller/Message.php new file mode 100644 index 0000000..ef90e0a --- /dev/null +++ b/catch/wechat/controller/Message.php @@ -0,0 +1,10 @@ +getModules($module) as $module) { - $information = CatchAdmin::getModuleInfo($module); - if (!empty($information)) { - if (isset($information['services']) && !empty($information['services'])) { - $services = array_merge($services, $information['services']); - } + if ($module) { + $moduleInfo = CatchAdmin::getModuleInfo(CatchAdmin::directory() . $module); + if (isset($moduleInfo['services']) && !empty($moduleInfo['services'])) { + return $moduleInfo['services']; + } else { + return []; } } - return $services; + return CatchAdmin::getServices(); } /**