|
|
|
@ -73,7 +73,7 @@ public class ConfigController {
|
|
|
|
public CommonResult<String> getConfigKey(@RequestParam("key") String key) {
|
|
|
|
public CommonResult<String> getConfigKey(@RequestParam("key") String key) {
|
|
|
|
ConfigDO config = configService.getConfigByKey(key);
|
|
|
|
ConfigDO config = configService.getConfigByKey(key);
|
|
|
|
if (config == null) {
|
|
|
|
if (config == null) {
|
|
|
|
return null;
|
|
|
|
return success(null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!config.getVisible()) {
|
|
|
|
if (!config.getVisible()) {
|
|
|
|
throw exception(ErrorCodeConstants.CONFIG_GET_VALUE_ERROR_IF_VISIBLE);
|
|
|
|
throw exception(ErrorCodeConstants.CONFIG_GET_VALUE_ERROR_IF_VISIBLE);
|
|
|
|
|