diff --git a/ms-biz/src/main/java/com/ms/biz/spi/callback/QuerySupplyPlatformAuthService.java b/ms-biz/src/main/java/com/ms/biz/spi/callback/QuerySupplyPlatformAuthService.java index 3dc2670..d687bf8 100644 --- a/ms-biz/src/main/java/com/ms/biz/spi/callback/QuerySupplyPlatformAuthService.java +++ b/ms-biz/src/main/java/com/ms/biz/spi/callback/QuerySupplyPlatformAuthService.java @@ -1,5 +1,7 @@ package com.ms.biz.spi.callback; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; import com.jinritemai.cloud.base.api.BaseRequest; import com.jinritemai.cloud.base.api.BaseResponse; import com.jinritemai.cloud.base.api.ExtensionService; @@ -15,18 +17,18 @@ import lombok.extern.slf4j.Slf4j; @ExtensionService("querySupplyPlatformAuth") @Slf4j @AllArgsConstructor -public class QuerySupplyPlatformAuthService extends SPIBaseService implements ExtensionServiceHandler { +public class QuerySupplyPlatformAuthService extends SPIBaseService implements ExtensionServiceHandler { private ShopService shopService; @Override - public BaseResponse handle(BaseRequest req) { + public BaseResponse handle(BaseRequest req) { try { QuerySupplyPlatformAuthParam param = req.getData(); QuerySupplyPlatformAuthData data = new QuerySupplyPlatformAuthData(); shopService.querySupplyPlatformAuth(param, data); - return BaseResponse.builder().success(true).message("success").code("0").data(data).build(); + return BaseResponse.builder().success(true).message("success").code("0").data(JSON.parseObject(JSON.toJSONString(data))).build(); } catch (Exception e) { - return BaseResponse.builder().success(true).message(e.getMessage()).code("100003").build(); + return BaseResponse.builder().success(true).message(e.getMessage()).code("100003").build(); } } } \ No newline at end of file