Commit 29ac759c51227ccb836d5d6d7f3b087f8b9f7fea

Authored by kinlon92
Committed by Gitee
1 parent 6f8384af

是否可见写反了

Signed-off-by: kinlon92 <zhangjinlong1211@126.com>
yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/config/ConfigController.java
@@ -75,7 +75,7 @@ public class ConfigController { @@ -75,7 +75,7 @@ public class ConfigController {
75 if (config == null) { 75 if (config == null) {
76 return null; 76 return null;
77 } 77 }
78 - if (config.getVisible()) { 78 + if (!config.getVisible()) {
79 throw ServiceExceptionUtil.exception(ErrorCodeConstants.CONFIG_GET_VALUE_ERROR_IF_VISIBLE); 79 throw ServiceExceptionUtil.exception(ErrorCodeConstants.CONFIG_GET_VALUE_ERROR_IF_VISIBLE);
80 } 80 }
81 return success(config.getValue()); 81 return success(config.getValue());