增加方法:获取 在聊天中,触发技师图片的id
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user