发送礼物新增动态id字段
This commit is contained in:
parent
b413153242
commit
bde2cd9be4
@ -83,6 +83,11 @@ public class GiveAwayGiftBatchEvent implements Serializable {
|
||||
*/
|
||||
private Long roomId;
|
||||
|
||||
/**
|
||||
* 动态id
|
||||
*/
|
||||
private Long dynamicContentId;
|
||||
|
||||
/**
|
||||
* 跟踪id.
|
||||
*/
|
||||
|
||||
@ -128,6 +128,7 @@ public class BlessingsGiftGiveCmdExe {
|
||||
giveAwayGiftBatchEvent.setQuantity(cmd.getQuantity());
|
||||
giveAwayGiftBatchEvent.setGiftConfig(toGiveGiftConfig(giftConfig));
|
||||
giveAwayGiftBatchEvent.setRoomId(cmd.getRoomId());
|
||||
giveAwayGiftBatchEvent.setDynamicContentId(cmd.getDynamicContentId());
|
||||
giveAwayGiftBatchEvent.setTrackId(trackId);
|
||||
giveAwayGiftBatchEvent.setSongId(cmd.getSongId());
|
||||
giveAwayGiftBatchEvent.setCheckBlessingsGift(Boolean.FALSE);
|
||||
|
||||
@ -49,6 +49,7 @@ public interface GiftAppConvertor {
|
||||
.setQuantity(cmd.getQuantity())
|
||||
.setGiftConfig(toGiveGiftConfig(giftConfig))
|
||||
.setRoomId(cmd.getRoomId())
|
||||
.setDynamicContentId(cmd.getRoomId())
|
||||
.setTrackId(trackId)
|
||||
.setSongId(cmd.getSongId())
|
||||
.setBagGift(Boolean.FALSE)
|
||||
|
||||
@ -451,6 +451,7 @@ public class GiveGiftsListener implements MessageListener {
|
||||
.processed(Boolean.FALSE)
|
||||
.trackId(event.getTrackId().toString())
|
||||
.originId(Objects.nonNull(event.getRoomId()) ? event.getRoomId().toString() : "OTHER")
|
||||
.dynamicContentId(Objects.nonNull(event.getRoomId()) ? event.getRoomId().toString() : null)
|
||||
.sysOrigin(event.getSysOrigin().name())
|
||||
.requestPlatform(event.getRequestPlatform())
|
||||
.userId(event.getSendUserId())
|
||||
|
||||
@ -59,6 +59,11 @@ public class GiveAwayGiftBatchCmd extends AppExtCommand {
|
||||
*/
|
||||
private Long roomId;
|
||||
|
||||
/**
|
||||
* 动态id.
|
||||
*/
|
||||
private Long dynamicContentId;
|
||||
|
||||
/**
|
||||
* 已点歌曲唯一标识ID(不是歌曲配置id而是已点歌曲id).
|
||||
*/
|
||||
|
||||
@ -47,6 +47,11 @@ public class GiftGiveRunningWater implements Serializable {
|
||||
*/
|
||||
private String originId;
|
||||
|
||||
/**
|
||||
* 动态id
|
||||
*/
|
||||
private String dynamicContentId;
|
||||
|
||||
/**
|
||||
* 来源系统.
|
||||
*/
|
||||
|
||||
@ -89,6 +89,7 @@ public class GiftGiveRunningWaterServiceImpl implements GiftGiveRunningWaterServ
|
||||
.songId(document.getLong("songId"))
|
||||
.trackId(document.getString("trackId"))
|
||||
.originId(document.getString("originId"))
|
||||
.dynamicContentId(document.getString("dynamicContentId"))
|
||||
.sysOrigin(document.getString("sysOrigin"))
|
||||
.requestPlatform(document.getString("requestPlatform"))
|
||||
.userId(document.getLong("userId"))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user