This commit is contained in:
2026-03-11 00:50:38 +08:00
parent a12cb5e75a
commit 4317053270
2 changed files with 3 additions and 3 deletions

View File

@@ -348,10 +348,10 @@ public class DifyServiceImpl implements DifyService {
String difyUserId = "user-" + userId;
return Mono.fromCallable(() -> {
// 1. 获取积分配置
// 1. 获取积分配置(复用提示词分析配置)
AiServiceConfigDO config = pointsService.getConfig(
AiPlatformEnum.DIFY.getPlatform(),
AiModelTypeEnum.BENCHMARK_ANALYZE.getModelCode());
AiModelTypeEnum.PROMPT_ANALYSIS.getModelCode());
// 2. 预检积分
pointsService.checkPoints(userId, config.getConsumePoints());