This commit is contained in:
@ -131,6 +131,12 @@ public class YxWechatLive implements Serializable {
|
|||||||
|
|
||||||
private String productId;
|
private String productId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 购物直播封面图 ,建议尺寸800*800
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String feedsImg;
|
||||||
|
|
||||||
public void copy(YxWechatLive source){
|
public void copy(YxWechatLive source){
|
||||||
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@ public class WxMaLiveInfo {
|
|||||||
private Integer roomid;
|
private Integer roomid;
|
||||||
private String coverImg;
|
private String coverImg;
|
||||||
private String shareImg;
|
private String shareImg;
|
||||||
|
private String feedsImg;
|
||||||
private Integer liveStatus;
|
private Integer liveStatus;
|
||||||
private Long startTime;
|
private Long startTime;
|
||||||
private Long endTime;
|
private Long endTime;
|
||||||
|
@ -161,6 +161,7 @@ public class YxWechatLiveServiceImpl extends BaseServiceImpl<YxWechatLiveMapper,
|
|||||||
public boolean saveLive(YxWechatLive resources){
|
public boolean saveLive(YxWechatLive resources){
|
||||||
WxMaService wxMaService = WxMaConfiguration.getWxMaService();
|
WxMaService wxMaService = WxMaConfiguration.getWxMaService();
|
||||||
try {
|
try {
|
||||||
|
resources.setFeedsImg(uploadPhotoToWx(wxMaService,resources.getFeedsImg()).getMediaId());
|
||||||
resources.setStartTime(Long.valueOf(OrderUtil.dateToTimestamp(resources.getStartDate())));
|
resources.setStartTime(Long.valueOf(OrderUtil.dateToTimestamp(resources.getStartDate())));
|
||||||
resources.setEndTime(Long.valueOf(OrderUtil.dateToTimestamp(resources.getEndDate())));
|
resources.setEndTime(Long.valueOf(OrderUtil.dateToTimestamp(resources.getEndDate())));
|
||||||
resources.setAnchorImg(uploadPhotoToWx(wxMaService,resources.getAnchorImge()).getMediaId());
|
resources.setAnchorImg(uploadPhotoToWx(wxMaService,resources.getAnchorImge()).getMediaId());
|
||||||
|
Reference in New Issue
Block a user