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);
results.add(new MagicToolResultVO(taskId, fluxResult));
} else {
fluxResult="Fail";
toProductImageResult.setStatus(fluxResult);
toProductImageResultMapper.updateById(toProductImageResult);
sortRank(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);
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")) {