From 43519039aed32fcc4a8538cb8cb358b6bde83d84 Mon Sep 17 00:00:00 2001 From: qiushengjie Date: Thu, 14 Sep 2023 14:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0accesstoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ms/api/spi/move/GetDsShopCategoryService.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ms-biz/src/main/java/com/ms/api/spi/move/GetDsShopCategoryService.java b/ms-biz/src/main/java/com/ms/api/spi/move/GetDsShopCategoryService.java index f64a8009..19100d48 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/move/GetDsShopCategoryService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/move/GetDsShopCategoryService.java @@ -3,10 +3,12 @@ package com.ms.api.spi.move; import com.doudian.open.api.shop_getShopCategory.ShopGetShopCategoryRequest; import com.doudian.open.api.shop_getShopCategory.ShopGetShopCategoryResponse; import com.doudian.open.api.shop_getShopCategory.param.ShopGetShopCategoryParam; +import com.doudian.open.core.AccessToken; import com.jinritemai.cloud.base.api.BaseRequest; import com.jinritemai.cloud.base.api.BaseResponse; import com.jinritemai.cloud.base.api.ExtensionService; import com.jinritemai.cloud.base.api.ExtensionServiceHandler; +import com.ms.api.bo.ShopBO; import com.ms.api.common.R; import com.ms.api.common.Ret; import com.ms.api.common.SPIBaseService; @@ -14,7 +16,9 @@ import com.ms.api.dto.move.GetChoicenessSourceItemTagRequestDTO; import com.ms.api.dto.move.GetDsShopCategoryRequestDTO; import com.ms.api.dto.move.SaveBatchMoveTaskRequestDTO; import com.ms.api.dto.move.SaveCurrentShopMoveSettingRequestDTO; +import com.ms.api.service.ShopService; import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; import java.util.HashMap; import java.util.Map; @@ -25,6 +29,10 @@ import java.util.Map; @ExtensionService("getDsShopCategory") @Slf4j public class GetDsShopCategoryService extends SPIBaseService implements ExtensionServiceHandler { + + @Autowired + ShopService shopService; + @Override public BaseResponse handle(BaseRequest req) { initHandle(req); @@ -34,7 +42,7 @@ public class GetDsShopCategoryService extends SPIBaseService implements Extensio ShopGetShopCategoryRequest request = new ShopGetShopCategoryRequest(); ShopGetShopCategoryParam param = request.getParam(); param.setCid(fields.getCid()); - ShopGetShopCategoryResponse response = request.execute(); + ShopGetShopCategoryResponse response = request.execute(shopInfo.getShopAccessToken()); // ----η»“ζžœθΏ”ε›ž---- Map result = new HashMap<>();