Skip to content

Commit e41478d

Browse files
committed
🐛 binarywang#2070 【小程序】修复获取直播间助手接口参数错误问题
1 parent b650dae commit e41478d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/impl/WxMaLiveServiceImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ public boolean removeAssistant(Integer roomId, String username) throws WxErrorEx
222222
public List<WxMaAssistantResult.Assistant> getAssistantList(Integer roomId) throws WxErrorException {
223223
Map<String, Object> map = new HashMap<>(2);
224224
map.put(ROOM_ID, roomId);
225-
String responseContent = this.wxMaService.post(Room.GET_ASSISTANT_LIST, WxMaGsonBuilder.create().toJson(map));
225+
String responseContent = this.wxMaService.get(Room.GET_ASSISTANT_LIST,
226+
Joiner.on("&").withKeyValueSeparator("=").join(map));
226227
JsonObject jsonObject = GsonParser.parse(responseContent);
227228
if (jsonObject.get(ERR_CODE).getAsInt() != 0) {
228229
throw new WxErrorException(WxError.fromJson(responseContent, WxType.MiniApp));

0 commit comments

Comments
 (0)