修复配置不可见时,返回 null 的问题
parent
1dbcf4ad7b
commit
95aeee54e7
|
@ -73,7 +73,7 @@ public class ConfigController {
|
|||
public CommonResult<String> getConfigKey(@RequestParam("key") String key) {
|
||||
ConfigDO config = configService.getConfigByKey(key);
|
||||
if (config == null) {
|
||||
return null;
|
||||
return success(null);
|
||||
}
|
||||
if (!config.getVisible()) {
|
||||
throw exception(ErrorCodeConstants.CONFIG_GET_VALUE_ERROR_IF_VISIBLE);
|
||||
|
|
Loading…
Reference in New Issue