java调用API创建直播间,之前是不需要传feedsImg字段的,但现在又改成了必填?
但是这个类WxMaLiveInfo.RoomInfo里貌似没有这个字段,是3.9的依赖,更新重下之后都没用,升级依赖之后又找不到这个类了?请问这是什么问题?
2 回复
或者各位有java创建直播间的代码示例吗,感谢了,这是我的,但是报错feedsImg字段必填
// 2.调用微信添加直播间接口添加直播间
WxMaLiveInfo.RoomInfo roomInfo = mapperFacade.map(liveRoom,WxMaLiveInfo.RoomInfo.class);
roomInfo.setStartTime(liveRoom.getStartTime().getTime() / 1000);
roomInfo.setEndTime(liveRoom.getEndTime().getTime() / 1000);
roomInfo.setAnchorImg(feedsImgMediaId);
roomInfo.setCloseComment(roomToolsVo.getCloseComment());
roomInfo.setCloseGoods(roomToolsVo.getCloseGoods());
roomInfo.setCloseLike(roomToolsVo.getCloseLike());
roomInfo.setCoverImg(liveRoom.getCoverImgId());
roomInfo.setShareImg(liveRoom.getShareImgId());