fix:去掉播放礼物特效的一些判断(价值大于520、特效标识),改为是否有特效
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user