diff --git a/crmeb/app/dao/system/config/SystemConfigDao.php b/crmeb/app/dao/system/config/SystemConfigDao.php index 0f8487d76..3d17b5314 100644 --- a/crmeb/app/dao/system/config/SystemConfigDao.php +++ b/crmeb/app/dao/system/config/SystemConfigDao.php @@ -34,20 +34,23 @@ class SystemConfigDao extends BaseDao * 获取某个系统配置 * @param string $configNmae * @return mixed + * @throws \ReflectionException */ public function getConfigValue(string $configNmae) { - return $this->withSearchSelect(['menu_name'], ['menu_name' => $configNmae])->value('value'); + return $this->search(['menu_name' => $configNmae])->value('value'); } /** * 获取所有配置 + * @param array $configName * @return array + * @throws \ReflectionException */ public function getConfigAll(array $configName = []) { if ($configName) { - return $this->withSearchSelect(['menu_name'], ['menu_name' => $configName])->column('value', 'menu_name'); + return $this->search(['menu_name' => $configName])->column('value', 'menu_name'); } else { return $this->getModel()->column('value', 'menu_name'); }