|
|
@@ -94,6 +94,7 @@ public class Release_task implements Serializable, MultiItemEntity {
|
|
|
private int is_shop = 2;
|
|
|
private int video_award = 2; //完成看视频
|
|
|
private double shop_amount = 0d;
|
|
|
+ private double vip_shop_amount = 0d;
|
|
|
private double video_amount = 0d;
|
|
|
private boolean auto_progress = false; //充值完成
|
|
|
|
|
|
@@ -117,6 +118,14 @@ public class Release_task implements Serializable, MultiItemEntity {
|
|
|
this.is_shop = is_shop;
|
|
|
}
|
|
|
|
|
|
+ public double getVip_shop_amount() {
|
|
|
+ return vip_shop_amount;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVip_shop_amount(double vip_shop_amount) {
|
|
|
+ this.vip_shop_amount = vip_shop_amount;
|
|
|
+ }
|
|
|
+
|
|
|
public int getVideo_award() {
|
|
|
return video_award;
|
|
|
}
|
|
|
@@ -420,7 +429,7 @@ public class Release_task implements Serializable, MultiItemEntity {
|
|
|
}
|
|
|
|
|
|
public String getCashOrWelfare() {
|
|
|
- if(isShop()){
|
|
|
+ if (isShop()) {
|
|
|
return "回报";
|
|
|
} else {
|
|
|
switch (cash_task) {
|
|
|
@@ -495,7 +504,11 @@ public class Release_task implements Serializable, MultiItemEntity {
|
|
|
|
|
|
//所有的奖励金额展示内容
|
|
|
public CharSequence getVipBonusText() {
|
|
|
- return String.format(Locale.CHINA, "会员:+%s元", NumberFormatUtils.retainMost2W(getVip_bonus()));
|
|
|
+ if (isShop()) {
|
|
|
+ return String.format(Locale.CHINA, "会员:+%s经验值", NumberFormatUtils.retainMost2W(getVip_shop_amount() * 10000));
|
|
|
+ } else {
|
|
|
+ return String.format(Locale.CHINA, "会员:+%s元", NumberFormatUtils.retainMost2W(getVip_bonus()));
|
|
|
+ }
|
|
|
// return new SpannableSb().append(String.format(Locale.CHINA, "会员:+%s元", NumberFormatUtils.retainMost2(bonus+0.1)), R.dimen.text_size_10).checkAndBr()
|
|
|
// .append(String.format(Locale.CHINA, "+%s元", NumberFormatUtils.retainMost2(bonus)), R.dimen.text_size_1)
|
|
|
// .getSsb();
|
|
|
@@ -528,7 +541,11 @@ public class Release_task implements Serializable, MultiItemEntity {
|
|
|
* @return
|
|
|
*/
|
|
|
public String getRewardMsg() {
|
|
|
- return String.format(Locale.CHINA, "+%s元%s", getBonusText(), getRewardTypeNameMsg());
|
|
|
+ if (isShop()) {
|
|
|
+ return String.format(Locale.CHINA, "+%s经验值", NumberFormatUtils.retainMost2W(getShop_amount() * 10000));
|
|
|
+ } else {
|
|
|
+ return String.format(Locale.CHINA, "+%s元%s", getBonusText(), getRewardTypeNameMsg());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -586,7 +603,11 @@ public class Release_task implements Serializable, MultiItemEntity {
|
|
|
|
|
|
//获取福利的价值
|
|
|
public CharSequence getWelfareValue() {
|
|
|
- return new SpannableSb().append("价值:").append(String.format(Locale.CHINA, "¥%s", bonus), "#FD2D54").getSsb();
|
|
|
+ if (isShop()) {
|
|
|
+ return String.format(Locale.CHINA, "+%s经验值", shop_amount * 10000);
|
|
|
+ } else {
|
|
|
+ return String.format(Locale.CHINA, "+%s元", bonus);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//获取福利剩余时间
|