好友
阅读权限10
听众
最后登录1970-1-1
|
本帖最后由 WilsonZtw 于 2025-8-28 10:24 编辑
安装包:https://www.123865.com/s/GwR6Vv-r0Sch
查看相关引用,貌似有两种vip判断方式:
public void setUserInfo(AccountInfo accountInfo) {
this.flBottom.setVisibility(0);
if (accountInfo == null) {
this.tvUserName.setText(getString(0x7f1103ca));
this.tvProDesc.setText(getString(0x7f110303));
this.tvRecoverBuy.setVisibility(8);
return;
}
this.tvRecoverBuy.setVisibility(0);
ImageLoadUtil.loadCircleImage(accountInfo.getHeadImgUrl(), this.imgUserPhoto);
this.tvUserName.setText(accountInfo.getNickname());
if (accountInfo.active) {
CountDownTimer countDownTimer = this.countDownTimer;
if (countDownTimer != null) {
countDownTimer.cancel();
}
if (accountInfo.getExpired() > 0) {
this.tvProDesc.setText(getString(0x7f1100da, TimeUtil.timeStamp2Date(accountInfo.getExpired())));
return;
}
this.tvProDesc.setText(0x7f1103ae);
this.flBottom.setVisibility(8);
this.rvPrice.setVisibility(8);
return;
}
if (accountInfo.getExpired() > 0) {
this.tvProDesc.setText(getString(0x7f110051, TimeUtil.timeStamp2Date(accountInfo.getExpired())));
} else {
this.tvProDesc.setText(getString(0x7f110303));
}
}
索引资源ID:
@7f1103ca
string/text_un_login
7f110303
@string/settings_auth_title
升级VIP会员,即享专属特权
@7f1100da
@string/expired_time
到期时间:%s
@7f1103ae
@string/text_permanent_member
您已是永久会员
@7f110051
@string/already_expired
string/already_expired
会员已到期:%s
@7f110303
@string/settings_auth_title
升级VIP会员,即享专属特权
困惑点:看了逻辑,貌似要小于0就是永久vip,赋值超过当前时间就是vip。
getExpired()J 分别赋值:-1l和4100688000000l(2099-12-12)
赋值大于当前时间戳显示小于0的时间戳直接显示开通会员,并没有按逻辑执行,是哪里有判断还是服务器验证呢,有大佬帮忙look下不,3Q
|
-
专享还是会跳转开通界面
-
显示已到期时间
免费评分
-
查看全部评分
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|
|