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<>();