diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxAssistantServiceImpl.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxAssistantServiceImpl.java index 55be5abcca..58d6d45269 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxAssistantServiceImpl.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxAssistantServiceImpl.java @@ -31,25 +31,25 @@ public class WxAssistantServiceImpl implements WxAssistantService { private final BaseWxChannelServiceImpl shopService; @Override public WxChannelBaseResponse addWindowProduct(AddWindowProductRequest req) throws WxErrorException { - String resJson = shopService.post(ADD_WINDOW_PRODUCT_URL, "{}"); + String resJson = shopService.post(ADD_WINDOW_PRODUCT_URL, req); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } @Override public GetWindowProductResponse getWindowProduct(WindowProductRequest req) throws WxErrorException { - String resJson = shopService.post(GET_WINDOW_PRODUCT_URL, "{}"); + String resJson = shopService.post(GET_WINDOW_PRODUCT_URL, req); return ResponseUtils.decode(resJson, GetWindowProductResponse.class); } @Override public GetWindowProductListResponse getWindowProductList(GetWindowProductListRequest req) throws WxErrorException { - String resJson = shopService.post(LIST_WINDOW_PRODUCT_URL, "{}"); + String resJson = shopService.post(LIST_WINDOW_PRODUCT_URL, req); return ResponseUtils.decode(resJson, GetWindowProductListResponse.class); } @Override public WxChannelBaseResponse offWindowProduct(WindowProductRequest req) throws WxErrorException { - String resJson = shopService.post(OFF_WINDOW_PRODUCT_URL, "{}"); + String resJson = shopService.post(OFF_WINDOW_PRODUCT_URL, req); return ResponseUtils.decode(resJson, WxChannelBaseResponse.class); } }