添加accesstoken

20230922-ljl-fixBug
qiushengjie 1 year ago
parent 865555f2b9
commit 43519039ae

@ -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<GetDsShopCategoryRequestDTO, Ret> {
@Autowired
ShopService shopService;
@Override
public BaseResponse<Ret> handle(BaseRequest<GetDsShopCategoryRequestDTO> 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<String, Object> result = new HashMap<>();

Loading…
Cancel
Save