修改:协议和配置表
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user