上传任务埋点代码

This commit is contained in:
liwei1dao 2023-05-22 19:02:01 +08:00
parent 95dc4efb22
commit ddf7f77315
5 changed files with 9 additions and 6 deletions

View File

@ -648,10 +648,10 @@ const (
Rtype179 TaskType = 179 //解锁X阶段装备新图纸X个
Rtype180 TaskType = 180 //在X副本内使用好友助战X次
Rtype181 TaskType = 181
Rtype182 TaskType = 182
Rtype183 TaskType = 183
Rtype184 TaskType = 184
Rtype185 TaskType = 185
Rtype182 TaskType = 182 //打赢武馆内踢馆X次接取任务后开始记录每赢得一次踢馆战斗的胜利进度便加一
Rtype183 TaskType = 183 //去好友武馆踢馆X次接取任务后开始记录每次在好友武馆开启一场踢馆便进度加一
Rtype184 TaskType = 184 //使用好友武馆木桩X次(接取任务后,每次使用好友的木桩训练英雄一次,进度便加一)
Rtype185 TaskType = 185 //完成X次每日1健(接取任务后每完成1次每日1健便进度加一)
Rtype186 TaskType = 186
)

View File

@ -101,6 +101,6 @@ func (this *apiComp) Accept(session comm.IUserSession, req *pb.PracticeAcceptReq
this.module.SendMsgToUser(string(this.module.GetType()), "qiecuonotify",
&pb.PracticeQiecuonotifyPush{Uid: session.GetUserId(), NotifyType: 2}, req.Uid)
go this.module.ModuleRtask.TriggerTask(req.Uid, comm.GettaskParam(comm.Rtype183, 1))
return
}

View File

@ -67,6 +67,7 @@ func (this *apiComp) GymRefresh(session comm.IUserSession, req *pb.PracticeGymRe
"gymrefresh": room.Gymrefresh,
"lastrefresh": room.Lastrefresh,
})
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype185, 1))
session.SendMsg(string(this.module.GetType()), "gymrefresh", &pb.PracticeGymRefreshResp{Lastaction: room.Gymaction, Refreshnum: room.Gymrefresh})
return
}

View File

@ -96,7 +96,7 @@ func (this *apiComp) Loot(session comm.IUserSession, req *pb.PracticeLootReq) (c
} else {
this.module.PutUserSession(_session)
}
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype184, 1))
session.SendMsg(string(this.module.GetType()), "loot", &pb.PracticeLootResp{Friend: req.Friend, Pillar: froom.Pillarf})
return
}

View File

@ -47,6 +47,8 @@ func (this *apiComp) NPCBattkleFinish(session comm.IUserSession, req *pb.Practic
"npcstate": room.Npcstate,
"refresh": room.Refresh,
})
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype182, 1))
} else {
room.Npcstate = 1
room.Battlenum++