mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-28 04:29:07 +08:00
🐛 #2070 【小程序】修复获取直播间助手接口参数错误问题
This commit is contained in:
@ -222,7 +222,8 @@ public class WxMaLiveServiceImpl implements WxMaLiveService {
|
||||
public List<WxMaAssistantResult.Assistant> getAssistantList(Integer roomId) throws WxErrorException {
|
||||
Map<String, Object> 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));
|
||||
|
||||
Reference in New Issue
Block a user