Skip to content

Commit 4284b0b

Browse files
authored
🎨 #4023 【视频号】修复 WxAssistantServiceImpl 所有方法请求参数未传递的问题
1 parent d427f0c commit 4284b0b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxAssistantServiceImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,25 @@ public class WxAssistantServiceImpl implements WxAssistantService {
3131
private final BaseWxChannelServiceImpl<?, ?> shopService;
3232
@Override
3333
public WxChannelBaseResponse addWindowProduct(AddWindowProductRequest req) throws WxErrorException {
34-
String resJson = shopService.post(ADD_WINDOW_PRODUCT_URL, "{}");
34+
String resJson = shopService.post(ADD_WINDOW_PRODUCT_URL, req);
3535
return ResponseUtils.decode(resJson, WxChannelBaseResponse.class);
3636
}
3737

3838
@Override
3939
public GetWindowProductResponse getWindowProduct(WindowProductRequest req) throws WxErrorException {
40-
String resJson = shopService.post(GET_WINDOW_PRODUCT_URL, "{}");
40+
String resJson = shopService.post(GET_WINDOW_PRODUCT_URL, req);
4141
return ResponseUtils.decode(resJson, GetWindowProductResponse.class);
4242
}
4343

4444
@Override
4545
public GetWindowProductListResponse getWindowProductList(GetWindowProductListRequest req) throws WxErrorException {
46-
String resJson = shopService.post(LIST_WINDOW_PRODUCT_URL, "{}");
46+
String resJson = shopService.post(LIST_WINDOW_PRODUCT_URL, req);
4747
return ResponseUtils.decode(resJson, GetWindowProductListResponse.class);
4848
}
4949

5050
@Override
5151
public WxChannelBaseResponse offWindowProduct(WindowProductRequest req) throws WxErrorException {
52-
String resJson = shopService.post(OFF_WINDOW_PRODUCT_URL, "{}");
52+
String resJson = shopService.post(OFF_WINDOW_PRODUCT_URL, req);
5353
return ResponseUtils.decode(resJson, WxChannelBaseResponse.class);
5454
}
5555
}

0 commit comments

Comments
 (0)