协议调试:聊天
This commit is contained in:
@@ -75,5 +75,5 @@ export class GirlChatData extends BaseData {
|
||||
if (this.chatRemainCount > 0) {
|
||||
this.setChatRemainCount(Math.max(0, this.chatRemainCount - times));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -796,6 +796,21 @@ export class GirlData extends BaseData {
|
||||
return oneData.useChat(times);
|
||||
}
|
||||
|
||||
/** 是否可聊天 */
|
||||
public isCanChat(categoryId: string, girlId: number): boolean {
|
||||
// 剩余聊天次数
|
||||
let remainCount = this.getChatRemainCount(categoryId, girlId);
|
||||
if (remainCount < 0) {
|
||||
// 会员
|
||||
return true;
|
||||
} else if (remainCount === 0) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** --------------------------------------------------------- 技师的好感度数据 --------------------------------------------------------- */
|
||||
|
||||
// 解析技师好感度数据,一个
|
||||
|
||||
Reference in New Issue
Block a user