切换wxjava导致直播间roomid不兼容,同步时候报错
This commit is contained in:
@ -31,7 +31,7 @@ public class YxWechatLive implements Serializable {
|
||||
|
||||
/** 直播间id */
|
||||
@TableId(type = IdType.INPUT)
|
||||
private Long roomid;
|
||||
private Long roomId;
|
||||
|
||||
|
||||
/** 直播间标题 */
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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<>();
|
||||
|
Reference in New Issue
Block a user