From e41478d9fd683dedd93e33d3fb0a51898982d561 Mon Sep 17 00:00:00 2001 From: Binary Wang Date: Sat, 17 Apr 2021 16:32:50 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20#2070=20=E3=80=90=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E3=80=91=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=97=B4=E5=8A=A9=E6=89=8B=E6=8E=A5=E5=8F=A3=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java index 20445e4e0..b71e58653 100644 --- a/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java +++ b/weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java @@ -222,7 +222,8 @@ public class WxMaLiveServiceImpl implements WxMaLiveService { public List getAssistantList(Integer roomId) throws WxErrorException { Map map = new HashMap<>(2); map.put(ROOM_ID, roomId); - String responseContent = this.wxMaService.post(Room.GET_ASSISTANT_LIST, WxMaGsonBuilder.create().toJson(map)); + String responseContent = this.wxMaService.get(Room.GET_ASSISTANT_LIST, + Joiner.on("&").withKeyValueSeparator("=").join(map)); JsonObject jsonObject = GsonParser.parse(responseContent); if (jsonObject.get(ERR_CODE).getAsInt() != 0) { throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));