上传捕羊埋点

This commit is contained in:
liwei1dao 2023-09-14 15:39:57 +08:00
parent 77964ed02e
commit 0f9525eecb
3 changed files with 6 additions and 1 deletions

View File

@ -900,6 +900,7 @@ const (
Rtype230 TaskType = 230 // 星期几登录
Rtype231 TaskType = 231 // 每期循环塔达到x层
Rtype232 TaskType = 232 // 种族塔通关x阵营x层
Rtype234 TaskType = 234 // 完成多次捕羊大赛
)
const (
MailLineEasy int32 = 1 // 简单

View File

@ -48,5 +48,9 @@ func (this *apiComp) ChangeMts(session comm.IUserSession, req *pb.CapturesheepCh
return
}
session.SendMsg(string(this.module.GetType()), "changemts", &pb.CapturesheepChangeMtsResp{Mid: req.Mid})
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
this.module.ModuleBuried.TriggerBuried(session, comm.GetBuriedParam(comm.Rtype234, 1))
})
return
}

View File

@ -85,7 +85,7 @@ func (this *statisticalComp) OutReport() {
file.WriteString(fmt.Sprintf("机器人总数: %d\n", this.module.options.RobotTotalNum))
file.WriteString(fmt.Sprintf("成功数量: %d\n", this.succclientNum))
file.WriteString(fmt.Sprintf("失败数量: %d\n", this.failclientNum))
file.WriteString(fmt.Sprintf("压测执行时长: %f秒\n", this.end.Sub(this.start).Seconds()))
file.WriteString(fmt.Sprintf("压测执行时长: %.2f秒\n", this.end.Sub(this.start).Seconds()))
file.WriteString(fmt.Sprintf("消息总请求数: %d\n", totalmessage))
file.WriteString("---消息压测详情----------------------------------------------------------------------------------------------------\n")
for message, data := range messages {