任务埋点
This commit is contained in:
parent
841bcec958
commit
da399799ff
@ -260,7 +260,7 @@ const ( //Rpc
|
|||||||
Rpc_ModuleSociatyUpdate core.Rpc_Key = "Rpc_ModuleSociatyUpdate"
|
Rpc_ModuleSociatyUpdate core.Rpc_Key = "Rpc_ModuleSociatyUpdate"
|
||||||
|
|
||||||
//公会任务列表
|
//公会任务列表
|
||||||
Rpc_ModuleSociatyTask core.Rpc_Key = "Rpc_ModuleSociatyTask"
|
Rpc_ModuleSociatyTask core.Rpc_Key = "Rpc_ModuleSociatyTask"
|
||||||
Rpc_ModuleSociatyGetTask core.Rpc_Key = "Rpc_ModuleSociatyGetTask"
|
Rpc_ModuleSociatyGetTask core.Rpc_Key = "Rpc_ModuleSociatyGetTask"
|
||||||
|
|
||||||
// RPC 通知来了邮件
|
// RPC 通知来了邮件
|
||||||
@ -545,6 +545,13 @@ const (
|
|||||||
Rtype144 TaskType = 144 //日常任务阵营接取抽卡
|
Rtype144 TaskType = 144 //日常任务阵营接取抽卡
|
||||||
Rtype145 TaskType = 145 //周长任务接取抽卡
|
Rtype145 TaskType = 145 //周长任务接取抽卡
|
||||||
Rtype146 TaskType = 146 //周长任务阵营接取抽卡
|
Rtype146 TaskType = 146 //周长任务阵营接取抽卡
|
||||||
|
Rtype147 TaskType = 147 //
|
||||||
|
Rtype148 TaskType = 148 //
|
||||||
|
Rtype149 TaskType = 149 //
|
||||||
|
Rtype150 TaskType = 150 //
|
||||||
|
Rtype151 TaskType = 151 //
|
||||||
|
Rtype152 TaskType = 152 //
|
||||||
|
Rtype153 TaskType = 153 //
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -142,5 +142,11 @@ func (this *apiComp) CreateOrder(session comm.IUserSession, req *pb.GourmetCreat
|
|||||||
code = this.module.ModifyGourmetData(session.GetUserId(), mapData)
|
code = this.module.ModifyGourmetData(session.GetUserId(), mapData)
|
||||||
|
|
||||||
session.SendMsg(string(this.module.GetType()), GourmetCreateOrderResp, &pb.GourmetCreateOrderResp{Data: _gourmet})
|
session.SendMsg(string(this.module.GetType()), GourmetCreateOrderResp, &pb.GourmetCreateOrderResp{Data: _gourmet})
|
||||||
|
|
||||||
|
iTotal := 0
|
||||||
|
for _, v := range req.Order {
|
||||||
|
iTotal += int(v.FoodCount)
|
||||||
|
}
|
||||||
|
this.module.ModuleRtask.SendToRtask(session, comm.Rtype150, int32(iTotal))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -107,6 +107,11 @@ func (this *apiComp) CreateOrder(session comm.IUserSession, req *pb.SmithyCreate
|
|||||||
mapData["clang"] = _smithy.Clang // 正在做的
|
mapData["clang"] = _smithy.Clang // 正在做的
|
||||||
mapData["ctime"] = _smithy.Ctime
|
mapData["ctime"] = _smithy.Ctime
|
||||||
code = this.module.ModifySmithyData(session.GetUserId(), mapData)
|
code = this.module.ModifySmithyData(session.GetUserId(), mapData)
|
||||||
|
iTotal := 0
|
||||||
|
for _, v := range req.Order {
|
||||||
|
iTotal += int(v.Count)
|
||||||
|
}
|
||||||
|
this.module.ModuleRtask.SendToRtask(session, comm.Rtype148, int32(iTotal))
|
||||||
|
|
||||||
session.SendMsg(string(this.module.GetType()), SmithyCreateOrderResp, &pb.SmithyCreateOrderResp{Data: _smithy})
|
session.SendMsg(string(this.module.GetType()), SmithyCreateOrderResp, &pb.SmithyCreateOrderResp{Data: _smithy})
|
||||||
return
|
return
|
||||||
|
@ -169,5 +169,7 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.TrollBuyOrSell
|
|||||||
if gold != 0 {
|
if gold != 0 {
|
||||||
this.module.record.AddTrollRecord(session.GetUserId(), gold, trolltrain.TarinPos)
|
this.module.record.AddTrollRecord(session.GetUserId(), gold, trolltrain.TarinPos)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.module.ModuleRtask.SendToRtask(session, comm.Rtype151, 1)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user