|
@@ -210,20 +210,25 @@ public class UserDetailActivity extends BaseMVPActivity<AcUserDetailLayoutBindin
|
|
//非会员
|
|
//非会员
|
|
if (userVip != null && !TextUtils.isEmpty(userVip.getExpireVipType())) {
|
|
if (userVip != null && !TextUtils.isEmpty(userVip.getExpireVipType())) {
|
|
//过期
|
|
//过期
|
|
- results[0] = VIP_STATUS_EXPIRE;
|
|
|
|
- results[1] = "暂未开通";
|
|
|
|
if (TextUtils.equals(userVip.getExpireVipType(), ExpireVipType.ALL_VIP.getId())) {
|
|
if (TextUtils.equals(userVip.getExpireVipType(), ExpireVipType.ALL_VIP.getId())) {
|
|
|
|
+ results[0] = VIP_STATUS_EXPIRE;
|
|
results[1] = String.format("已过期%s天", getExpireDaysTip(target, userVip));
|
|
results[1] = String.format("已过期%s天", getExpireDaysTip(target, userVip));
|
|
|
|
+ return results;
|
|
}
|
|
}
|
|
if (TextUtils.equals(userVip.getExpireVipType(), target)) {
|
|
if (TextUtils.equals(userVip.getExpireVipType(), target)) {
|
|
|
|
+ results[0] = VIP_STATUS_EXPIRE;
|
|
results[1] = String.format("已过期%s天", getExpireDaysTip(target, userVip));
|
|
results[1] = String.format("已过期%s天", getExpireDaysTip(target, userVip));
|
|
|
|
+ return results;
|
|
}
|
|
}
|
|
|
|
+ results[0] = VIP_STATUS_NOT_OPEN;
|
|
|
|
+ results[1] = "暂未开通";
|
|
|
|
+ return results;
|
|
} else {
|
|
} else {
|
|
//未开通会员
|
|
//未开通会员
|
|
results[0] = VIP_STATUS_NOT_OPEN;
|
|
results[0] = VIP_STATUS_NOT_OPEN;
|
|
results[1] = "暂未开通";
|
|
results[1] = "暂未开通";
|
|
|
|
+ return results;
|
|
}
|
|
}
|
|
- return results;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private String getDaysTip(String target, IMUserInfo.VipBean userVip) {
|
|
private String getDaysTip(String target, IMUserInfo.VipBean userVip) {
|