增加方法:获取 在聊天中,触发技师图片的id

This commit is contained in:
chen wei bo
2025-09-10 20:59:12 +08:00
parent 24b9942110
commit 532a279088
5 changed files with 42 additions and 3 deletions
@@ -3,6 +3,8 @@
*/
import { BaseData } from "./BaseData";
import proto from 'db://assets/Scripts/proto/proto.pb.js';
import Utils from "../../Main/Common/Utils";
import { InnerMsgCode } from "../../Main/Config/InnerMsgCode";
export class GirlChatData extends BaseData {
// id
@@ -67,6 +69,12 @@ export class GirlChatData extends BaseData {
/** 保存总聊天次数 */
public setChatTotalCount(value: number): void {
this.chatTotalCount = value;
// 发出事件
let msgData = {
girlId: this.id,
chatTotalCount: this.chatTotalCount,
};
Utils.sendInnerMsg(InnerMsgCode.ChatTotalCountChange, msgData);
console.log("当前技师 ", this.id, " ,总聊天次数:", this.chatTotalCount);
}