mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 17:13:54 +08:00
格式调整
This commit is contained in:
+1
-4
@@ -390,10 +390,7 @@ public class ConfigServiceImpl implements ConfigService {
|
|||||||
// 复制一份配置,避免修改原始数据
|
// 复制一份配置,避免修改原始数据
|
||||||
JSONObject configJsonCopy = new JSONObject(model.getConfigJson());
|
JSONObject configJsonCopy = new JSONObject(model.getConfigJson());
|
||||||
|
|
||||||
// 对敏感数据进行隐藏处理
|
typeConfig.put(model.getId(), configJsonCopy);
|
||||||
JSONObject maskedConfigJson = SensitiveDataUtils.maskSensitiveFields(configJsonCopy);
|
|
||||||
|
|
||||||
typeConfig.put(model.getId(), maskedConfigJson);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
result.put(modelTypes[i], typeConfig);
|
result.put(modelTypes[i], typeConfig);
|
||||||
|
|||||||
+1
-1
@@ -175,7 +175,7 @@ public class ModelConfigServiceImpl extends BaseServiceImpl<ModelConfigDao, Mode
|
|||||||
public ModelConfigDTO add(String modelType, String provideCode, ModelConfigBodyDTO modelConfigBodyDTO) {
|
public ModelConfigDTO add(String modelType, String provideCode, ModelConfigBodyDTO modelConfigBodyDTO) {
|
||||||
// 先验证有没有供应器
|
// 先验证有没有供应器
|
||||||
if (StringUtils.isBlank(modelType) || StringUtils.isBlank(provideCode)) {
|
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);
|
List<ModelProviderDTO> providerList = modelProviderService.getList(modelType, provideCode);
|
||||||
if (CollectionUtil.isEmpty(providerList)) {
|
if (CollectionUtil.isEmpty(providerList)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user