Commit 90f920f55b5f7f5350f5e295ac32e81ea1e39858

Authored by cherishsince
1 parent 513ded4f

【优化】midjourney action 重置 buttons

yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.java
... ... @@ -79,7 +79,7 @@ public class AiImageController {
79 79 }
80 80  
81 81 @Operation(summary = "midjourney - action(放大、缩小、U1、U2...)")
82   - @PostMapping("/midjourney/action")
  82 + @GetMapping("/midjourney/action")
83 83 public CommonResult<Boolean> midjourneyAction(@RequestParam("id") Long imageId,
84 84 @RequestParam("customId") String customId) {
85 85 return success(imageService.midjourneyAction(getLoginUserId(), imageId, customId));
... ...
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/image/AiImageServiceImpl.java
... ... @@ -258,6 +258,7 @@ public class AiImageServiceImpl implements AiImageService {
258 258 newImage.setProgress(null);
259 259 newImage.setTaskId(submitRespVO.getResult());
260 260 newImage.setErrorMessage(null);
  261 + newImage.setButtons(null);
261 262 // 4.2、保存数据库
262 263 imageMapper.insert(newImage);
263 264 return Boolean.TRUE;
... ...