【优化】midjourney action 重置 buttons

This commit is contained in:
cherishsince 2024-06-05 17:15:06 +08:00
parent 513ded4f61
commit 90f920f55b
2 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class AiImageController {
}
@Operation(summary = "midjourney - action(放大、缩小、U1、U2...)")
@PostMapping("/midjourney/action")
@GetMapping("/midjourney/action")
public CommonResult<Boolean> midjourneyAction(@RequestParam("id") Long imageId,
@RequestParam("customId") String customId) {
return success(imageService.midjourneyAction(getLoginUserId(), imageId, customId));

View File

@ -258,6 +258,7 @@ public class AiImageServiceImpl implements AiImageService {
newImage.setProgress(null);
newImage.setTaskId(submitRespVO.getResult());
newImage.setErrorMessage(null);
newImage.setButtons(null);
// 4.2保存数据库
imageMapper.insert(newImage);
return Boolean.TRUE;