协议调试:聊天

This commit is contained in:
chen wei bo
2025-09-10 18:00:00 +08:00
parent 54e6209e79
commit ddaa79d0ee
2 changed files with 16 additions and 1 deletions
+15
View File
@@ -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;
}
/** --------------------------------------------------------- 技师的好感度数据 --------------------------------------------------------- */
// 解析技师好感度数据,一个