BUGFIX: 更新flux生成结果失败

This commit is contained in:
2025-07-29 15:59:57 +08:00
parent 0fcd8e5444
commit 830d06a900

View File

@@ -816,9 +816,8 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
}
private MagicToolResultVO processFluxResult(String fluxImgMinioPath, ToProductImageResult toProductImageResult, String taskId, String prompt){
// todo 需要先判断当前任务状态是否已为 Success 是 -> 不用修改,直接处理回参
if (!toProductImageResult.getStatus().equals("Success")
&& !StringUtil.isNullOrEmpty(toProductImageResult.getUrl())){
&& StringUtil.isNullOrEmpty(toProductImageResult.getUrl())){
toProductImageResult.setStatus("Success");
toProductImageResult.setUrl(fluxImgMinioPath);
toProductImageResultMapper.updateById(toProductImageResult);