perf:只读配置不可修改

This commit is contained in:
曾文豪
2023-01-04 13:57:07 +08:00
parent e5db6cdcb7
commit e61b82d026

View File

@@ -62,6 +62,9 @@ public class ConfigController {
if (configKey == null) {
throw new ApiException("该配置不存在,请检查");
}
if (configKey.getReadOnly() == 1) {
throw new ApiException("该配置只读,不可修改");
}
configKey.setConfigVal(dto.getConfigVal());
configKey.setRemark(dto.getRemark());
configKey.setExtra(dto.getExtra());