修改:协议和配置表

This commit is contained in:
chen wei bo
2025-09-08 15:11:11 +08:00
parent 5821bc17ae
commit 826e52d019
47 changed files with 12826 additions and 4127 deletions
@@ -82,6 +82,20 @@ export class GirlConfig extends BaseConfig {
if (!oneData) return null;
return oneData.priceType;
}
/** 根据 id 获取购买价格 */
public getPriceById(id: number): number | null {
let oneData = this.getConfigById(id);
if (!oneData) return null;
return oneData.price;
}
/** 根据 id 获取VIP能否解锁 */
public getVipUnlockById(id: number): number | null {
let oneData = this.getConfigById(id);
if (!oneData) return null;
return oneData.vipUnlock;
}
/** 根据 id 获取头像路径 */
public getAvatarPathById(id: number): string | null {