获取所有已经有过聊天记录的技师 id

This commit is contained in:
chen wei bo
2025-10-13 17:17:58 +08:00
parent 4953b86bb3
commit 43815acef2
2 changed files with 52 additions and 0 deletions
@@ -166,6 +166,13 @@ export class GirlChatData extends BaseData {
return this.chatRecordIds;
}
/** 是否已经有过聊天记录 */
public isAlreadyChat(): boolean {
const hasIds = this.chatRecordIds && this.chatRecordIds.length > 0;
const hasRecords = this.chatRecord && this.chatRecord.size > 0;
return hasIds || hasRecords;
}
/** 获取最新的聊天记录的id */
public getLatestChatRecordId(): number | null {
if (this.chatRecordIds.length === 0) return null;