perf:只读配置不可修改
This commit is contained in:
@@ -62,6 +62,9 @@ public class ConfigController {
|
|||||||
if (configKey == null) {
|
if (configKey == null) {
|
||||||
throw new ApiException("该配置不存在,请检查");
|
throw new ApiException("该配置不存在,请检查");
|
||||||
}
|
}
|
||||||
|
if (configKey.getReadOnly() == 1) {
|
||||||
|
throw new ApiException("该配置只读,不可修改");
|
||||||
|
}
|
||||||
configKey.setConfigVal(dto.getConfigVal());
|
configKey.setConfigVal(dto.getConfigVal());
|
||||||
configKey.setRemark(dto.getRemark());
|
configKey.setRemark(dto.getRemark());
|
||||||
configKey.setExtra(dto.getExtra());
|
configKey.setExtra(dto.getExtra());
|
||||||
|
|||||||
Reference in New Issue
Block a user