上传星像埋点

This commit is contained in:
liwei1dao 2023-05-26 12:31:57 +08:00
parent fc2f667599
commit 978fe81b35
2 changed files with 4 additions and 1 deletions

View File

@ -52,6 +52,9 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.HoroscopeUpgrade
return return
} }
info.Nodes[conf.NodeId] = conf.Lv + 1 info.Nodes[conf.NodeId] = conf.Lv + 1
if info.Nodes[conf.NodeId] == 1 { //解锁
go this.module.ModuleRtask.TriggerTask(session.GetUserId(), comm.GettaskParam(comm.Rtype173, 1))
}
if err = this.module.modelHoroscope.updateInfo(session, info); err != nil { if err = this.module.modelHoroscope.updateInfo(session, info); err != nil {
code = pb.ErrorCode_DBError code = pb.ErrorCode_DBError
return return

View File

@ -317,7 +317,7 @@ func (this *ModuleRtask) TriggerTask(uid string, taskParams ...*comm.TaskParam)
} }
func (this *ModuleRtask) processTasks(session comm.IUserSession, taskParams ...*comm.TaskParam) { func (this *ModuleRtask) processTasks(session comm.IUserSession, taskParams ...*comm.TaskParam) {
lock, _ := this.modelRtask.userlock(session.GetUserId()) lock, _ := this.modelRtask.userlock(session.GetUserId())
err := lock.Lock() err := lock.Lock()
if err != nil { if err != nil {