fix:edit产品图照成排序问题,恢复原逻辑

This commit is contained in:
litianxiang
2025-12-17 16:08:49 +08:00
parent 17645d17e5
commit d3fc70fbf2

View File

@@ -1469,15 +1469,10 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
sortRank(toProductImageResult); sortRank(toProductImageResult);
results.add(new MagicToolResultVO(taskId, fluxResult)); results.add(new MagicToolResultVO(taskId, fluxResult));
} else { } else {
fluxResult="Fail"; results.add(processFluxResult(fluxResult, toProductImageResult, taskId, toProductImageRecord.getPrompt()));
toProductImageResult.setStatus(fluxResult); // 扣积分
toProductImageResultMapper.updateById(toProductImageResult); Boolean flag = creditsService.taskCreditsDeduction(project.getAccountId(), taskId);
sortRank(toProductImageResult); if (flag) creditsService.updateChangedCredits(String.valueOf(project.getAccountId()), taskId);
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")) { if (toProductImageResult.getStatus().equals("Fail")) {