diff --git a/ms-api/src/main/java/com/ms/api/dto/move/FindSimilarProductsRequestDTO.java b/ms-api/src/main/java/com/ms/api/dto/move/FindSimilarProductsRequestDTO.java index 6bc05555..a7ff89c0 100644 --- a/ms-api/src/main/java/com/ms/api/dto/move/FindSimilarProductsRequestDTO.java +++ b/ms-api/src/main/java/com/ms/api/dto/move/FindSimilarProductsRequestDTO.java @@ -9,5 +9,5 @@ import lombok.Data; public class FindSimilarProductsRequestDTO { // searchSameProductImg file 图片,图片上传方式java开发同前端开发约定 是 - + private String img; } diff --git a/ms-biz/src/main/java/com/ms/api/spi/move/FindSimilarProductsService.java b/ms-biz/src/main/java/com/ms/api/spi/move/FindSimilarProductsService.java index 69c9e1c1..81036697 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/move/FindSimilarProductsService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/move/FindSimilarProductsService.java @@ -28,6 +28,7 @@ public class FindSimilarProductsService extends SPIBaseService implements Extens @Override public BaseResponse handle(BaseRequest req) { initHandle(req); + getAuthCode(); // ----参数校验---- FindSimilarProductsRequestDTO fields = req.getData(); @@ -35,10 +36,8 @@ public class FindSimilarProductsService extends SPIBaseService implements Extens // ----业务处理---- HashMap params = new HashMap<>(); - params.put("",""); - -// img url 图片URl 是 -// authCode string 是 + params.put("img",fields.getImg()); + params.put("authCode",authCode); String res = null; try {