fix:去掉播放礼物特效的一些判断(价值大于520、特效标识),改为是否有特效

This commit is contained in:
max
2024-05-14 15:30:00 +08:00
parent e386c0cf58
commit 01093d39c5
2 changed files with 15 additions and 2 deletions

View File

@@ -1,8 +1,12 @@
package com.chwl.core.gift.bean;
import android.text.TextUtils;
import com.google.gson.annotations.SerializedName;
import com.netease.nim.uikit.common.util.string.StringUtil;
import java.io.Serializable;
import java.net.MalformedURLException;
import lombok.Data;
@@ -111,4 +115,13 @@ public class GiftInfo implements Serializable {
mFreeGiftProgress = freeGiftProgress;
}
public boolean isEffectGift() {
if (getOtherViewType() == 1 && !TextUtils.isEmpty(getViewUrl())) {
return true;
} else if (isHasVggPic() && !StringUtil.isEmpty(getVggUrl())) {
return true;
}
return false;
}
}