判断是否是VIP

This commit is contained in:
chen wei bo
2025-09-20 12:20:59 +08:00
parent b947a7c97d
commit a4bd709355
@@ -55,4 +55,10 @@ export class WalletData extends BaseData {
public get vipExpire(): number {
return this._vipExpire;
}
/** 判断用户是否是VIP */
public get isVip(): boolean {
const now = Math.floor(Date.now() / 1000); // 当前时间戳(秒)
return this._vipExpire > now;
}
}