diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.java index 443b522bb..578d60a6b 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.java +++ b/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 { } @Operation(summary = "midjourney - action(放大、缩小、U1、U2...)") - @PostMapping("/midjourney/action") + @GetMapping("/midjourney/action") public CommonResult midjourneyAction(@RequestParam("id") Long imageId, @RequestParam("customId") String customId) { return success(imageService.midjourneyAction(getLoginUserId(), imageId, customId)); diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/image/AiImageServiceImpl.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/image/AiImageServiceImpl.java index e4909f988..e64ff5b5e 100644 --- a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/image/AiImageServiceImpl.java +++ b/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 { newImage.setProgress(null); newImage.setTaskId(submitRespVO.getResult()); newImage.setErrorMessage(null); + newImage.setButtons(null); // 4.2、保存数据库 imageMapper.insert(newImage); return Boolean.TRUE;