格式调整

This commit is contained in:
LiJinHui
2025-09-26 14:44:20 +08:00
parent a8932f3743
commit ef4abf08f0
2 changed files with 7 additions and 10 deletions
@@ -390,10 +390,7 @@ public class ConfigServiceImpl implements ConfigService {
// 复制一份配置,避免修改原始数据
JSONObject configJsonCopy = new JSONObject(model.getConfigJson());
// 对敏感数据进行隐藏处理
JSONObject maskedConfigJson = SensitiveDataUtils.maskSensitiveFields(configJsonCopy);
typeConfig.put(model.getId(), maskedConfigJson);
typeConfig.put(model.getId(), configJsonCopy);
}
result.put(modelTypes[i], typeConfig);
@@ -175,7 +175,7 @@ public class ModelConfigServiceImpl extends BaseServiceImpl<ModelConfigDao, Mode
public ModelConfigDTO add(String modelType, String provideCode, ModelConfigBodyDTO modelConfigBodyDTO) {
// 先验证有没有供应器
if (StringUtils.isBlank(modelType) || StringUtils.isBlank(provideCode)) {
throw new RenException("modelType和provideCode不能为空");
throw new RenException(ErrorCode.MODEL_TYPE_PROVIDE_CODE_NOT_NULL);
}
List<ModelProviderDTO> providerList = modelProviderService.getList(modelType, provideCode);
if (CollectionUtil.isEmpty(providerList)) {