协议调试:商城

This commit is contained in:
chen wei bo
2025-09-10 15:27:07 +08:00
parent c1471c1540
commit 00099f2860
6 changed files with 75 additions and 28 deletions
+16
View File
@@ -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]; // 取首位字符