AI配置模块功能完善

This commit is contained in:
2025-10-30 15:12:07 +08:00
parent 8b6e3d0815
commit 9ddc6887ff
7 changed files with 6 additions and 784 deletions
@@ -356,15 +356,8 @@ public class AiConfigServiceImpl extends ServiceImpl<AiConfigMapper, AiConfig> i
response.setUpdateTime(aiConfig.getUpdateTime().format(DATE_TIME_FORMATTER));
}
// 脱敏处理API Token
if (StringUtils.hasText(aiConfig.getApiToken())) {
String token = aiConfig.getApiToken();
if (token.length() > 8) {
response.setApiToken(token.substring(0, 4) + "****" + token.substring(token.length() - 4));
} else {
response.setApiToken("****");
}
}
// 管理端不需要脱敏,直接返回完整的API Token
response.setApiToken(aiConfig.getApiToken());
// 转换BigDecimal为Double
if (aiConfig.getTemperature() != null) {