From 86dbcc1f3ba17cc71d5d8beab32950b9e14c8328 Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Tue, 16 Aug 2022 18:06:15 +0800 Subject: [PATCH] =?UTF-8?q?ai=E8=AF=B7=E6=B1=82=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/api/AppController.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index 1357ecb..89e2b35 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -346,13 +346,14 @@ public class AppController extends BaseController @GetMapping("/image/{recordId}") @ApiOperation("获取图片接口") - private AjaxResult getAiImage(@PathVariable("recordId") Long recordId){ + public AjaxResult getAiImage(@PathVariable("recordId") Long recordId){ if(recordId == null){ return AjaxResult.error("未获取到参数"); } TImage tImage = new TImage(); tImage.setThirdId(recordId); - return AjaxResult.success(imageService.selectTImageList(tImage)); + List images = imageService.selectTImageList(tImage); + return AjaxResult.success(images); } private void saveImage(AiPostReq aiPostReq,Long recordId)