临时测试修改

This commit is contained in:
litianxiang
2025-12-17 13:10:09 +08:00
parent bce368248c
commit afc6041570

View File

@@ -1467,10 +1467,14 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
toProductImageResultMapper.updateById(toProductImageResult);
results.add(new MagicToolResultVO(taskId, fluxResult));
} else {
results.add(processFluxResult(fluxResult, toProductImageResult, taskId, toProductImageRecord.getPrompt()));
// 扣积分
Boolean flag = creditsService.taskCreditsDeduction(project.getAccountId(), taskId);
if (flag) creditsService.updateChangedCredits(String.valueOf(project.getAccountId()), taskId);
fluxResult="Fail";
toProductImageResult.setStatus(fluxResult);
toProductImageResultMapper.updateById(toProductImageResult);
results.add(new MagicToolResultVO(taskId, fluxResult));
// results.add(processFluxResult(fluxResult, toProductImageResult, taskId, toProductImageRecord.getPrompt()));
// // 扣积分
// Boolean flag = creditsService.taskCreditsDeduction(project.getAccountId(), taskId);
// if (flag) creditsService.updateChangedCredits(String.valueOf(project.getAccountId()), taskId);
}
// 将积分暂扣区的积分移除
if (toProductImageResult.getStatus().equals("Fail")) {