切换wxjava导致直播间roomid不兼容,同步时候报错

This commit is contained in:
xuwenbo
2020-09-05 20:41:41 +08:00
parent 6876f5cf04
commit 141a7e2959
3 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ public class YxWechatLive implements Serializable {
/** 直播间id */
@TableId(type = IdType.INPUT)
private Long roomid;
private Long roomId;
/** 直播间标题 */

View File

@ -29,7 +29,7 @@ public class YxWechatLiveDto implements Serializable {
/** 防止精度丢失 */
@JsonSerialize(using= ToStringSerializer.class)
@ApiModelProperty(value = "直播间id")
private Long roomid;
private Long roomId;
private Long id;

View File

@ -103,7 +103,7 @@ public class YxWechatLiveServiceImpl extends BaseServiceImpl<YxWechatLiveMapper,
,YxWechatLiveGoodsDto.class);
i.setProduct(wechatLiveGoodsDtos);
}
i.setId(i.getRoomid());
i.setId(i.getRoomId());
});
wechatLiveVo.setContent(liveDtos);
wechatLiveVo.setTotalElements(page.getTotal());
@ -120,7 +120,7 @@ public class YxWechatLiveServiceImpl extends BaseServiceImpl<YxWechatLiveMapper,
resources.setShareImg(uploadPhotoToWx(wxMaService,resources.getShareImge()).getMediaId());
WxMaLiveInfo.RoomInfo roomInfo = generator.convert(resources, WxMaLiveInfo.RoomInfo.class);
Integer status = wxMaService.getLiveService().createRoom(roomInfo);
resources.setRoomid(Long.valueOf(status));
resources.setRoomId(Long.valueOf(status));
if(StringUtils.isNotBlank(resources.getProductId())){
String[] productIds = resources.getProductId().split(",");
List<Integer> pids = new ArrayList<>();