[BugFix]福袋特效优化

This commit is contained in:
wushaocheng
2023-07-20 16:12:37 +08:00
parent fdfec8610d
commit 951c42592e
8 changed files with 76 additions and 55 deletions

View File

@@ -98,6 +98,8 @@ dependencies {
api 'com.google.android.gms:play-services-wallet:19.1.0'
api 'com.android.billingclient:billing:4.1.0'
api 'org.jetbrains.kotlin:kotlin-reflect:1.5.20'
api project(':nim_uikit')
api project(':library')
api project(':trtc_release')

View File

@@ -768,8 +768,6 @@ public final class IMNetEaseManager {
messages.add(msg);
gift = true;
} else if (customAttachment.getSecond() == CustomAttachment.CUSTOM_MSG_SUB_TYPE_SEND_LUCKY_GIFT) {
MultiLuckyGiftAttachment luckyGiftAttachment = (MultiLuckyGiftAttachment) attachment;
GiftModel.get().addNewGift(luckyGiftAttachment.getMultiLuckyGiftReceiveInfo().getDisplayGift().get(0));
messages.add(msg);
gift = true;
}
@@ -791,13 +789,9 @@ public final class IMNetEaseManager {
messages.add(msg);
gift = true;
} else if (customAttachment.getSecond() == CustomAttachment.CUSTOM_MSG_SUB_TYPE_SEND_ALL_MIC_LUCKY_GIFT) {
MultiLuckyGiftAttachment luckyGiftAttachment = (MultiLuckyGiftAttachment) attachment;
GiftModel.get().addNewGift(luckyGiftAttachment.getMultiLuckyGiftReceiveInfo().getDisplayGift().get(0));
messages.add(msg);
gift = true;
} else if (customAttachment.getSecond() == CustomAttachment.CUSTOM_MSG_SUB_TYPE_SEND_MULTI_LUCK_GIFT) {
MultiLuckyGiftAttachment luckyGiftAttachment = (MultiLuckyGiftAttachment) attachment;
GiftModel.get().addNewGift(luckyGiftAttachment.getMultiLuckyGiftReceiveInfo().getDisplayGift().get(0));
messages.add(msg);
gift = true;
}

View File

@@ -4,32 +4,32 @@ data class FairyMsgInfo(
/**
* uid
*/
val uid: Long? = null,
val uid: Long = 0L,
/**
* 昵称
*/
val nick: String? = null,
val nick: String = "",
/**
* 所在房间uid
*/
val roomUid: Long? = null,
val roomUid: Long = 0L,
/**
* 奖励类型
*/
val rewardType: String? = null,
val rewardType: String = "",
/**
* 奖励名称
*/
val rewardName: String? = null,
val rewardName: String = "",
/**
* 奖励等级
*/
val rewardLevel: Int? = null,
val rewardLevel: Int = 0,
/**
* 奖励数量
@@ -39,10 +39,10 @@ data class FairyMsgInfo(
/**
* 限制等级
*/
val userLevelLimit: Int? = null,
val userLevelLimit: Int = 0,
/**
* 展示价值
*/
val rewardShowValue: Int? = null
val rewardShowValue: Int = 0
)