协议调试:商城
This commit is contained in:
@@ -93,6 +93,22 @@ export class ShopData extends BaseData {
|
||||
return resultId;
|
||||
}
|
||||
|
||||
/** 获取7天会员的 id */
|
||||
public get7DayMemberId(): number {
|
||||
const ids = this.getMemberIds();
|
||||
const length = ids.length;
|
||||
if (length <= 0) return 0;
|
||||
return ids[0];
|
||||
}
|
||||
|
||||
/** 获取30天会员的 id */
|
||||
public get30DayMemberId(): number {
|
||||
const ids = this.getMemberIds();
|
||||
const length = ids.length;
|
||||
if (length <= 1) return 0;
|
||||
return ids[1];
|
||||
}
|
||||
|
||||
/** 是否是聊天商品,首位数字为 3 */
|
||||
public isChatId(id: number): boolean {
|
||||
const firstDigit = id.toString()[0]; // 取首位字符
|
||||
|
||||
Reference in New Issue
Block a user