商店和关卡编辑埋点
This commit is contained in:
parent
fc4b7a46d5
commit
af571fb456
@ -88,6 +88,7 @@ func (this *apiComp) ChallengeReceive(session comm.IUserSession, req *pb.CombatC
|
||||
return
|
||||
}
|
||||
this.module.DispenseRes(session, level.Award, true)
|
||||
this.module.ModuleRtask.SendToRtask(session, comm.Rtype140, level.Id)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -94,6 +94,7 @@ func (this *apiComp) Drop(session comm.IUserSession, req *pb.CombatDropReq) (cod
|
||||
return
|
||||
}
|
||||
this.module.DispenseRes(session, level.Award, true)
|
||||
this.module.ModuleRtask.SendToRtask(session, comm.Rtype140, level.Id)
|
||||
}
|
||||
|
||||
session.SendMsg(string(this.module.GetType()), "drop", &pb.CombatDropResp{Code: code, Atns: atns, Pass: pass})
|
||||
|
@ -133,6 +133,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
||||
}
|
||||
}
|
||||
}
|
||||
this.module.ModuleRtask.SendToRtask(session, comm.Rtype105, 1)
|
||||
this.module.modelShop.Change(session.GetUserId(), map[string]interface{}{filed: sdata})
|
||||
} else if !req.IsManualRefresh {
|
||||
if tdata > ltime { //达到刷新时间 可以刷新商品列表
|
||||
@ -159,6 +160,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
|
||||
}
|
||||
goods = transGoods(items, sdata)
|
||||
this.module.modelShop.Change(session.GetUserId(), map[string]interface{}{filed: sdata})
|
||||
this.module.ModuleRtask.SendToRtask(session, comm.Rtype105, 1)
|
||||
} else { //返回以前的商品列表
|
||||
if items, err = this.module.configure.GetShopItemsConfigureByIds(sdata.Items...); err != nil {
|
||||
code = pb.ErrorCode_SystemError
|
||||
|
Loading…
Reference in New Issue
Block a user