Commit 3dbe8cd279000056032cf1eb78edda77f11ac224
Committed by
Gitee
!350 配置管理,配置是否可见判断写反了
Merge pull request !350 from kinlon92/master
Showing
1 changed file
with
1 additions
and
1 deletions
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()); |