上传埋点协议

This commit is contained in:
liwei1dao 2024-01-09 14:21:28 +08:00
parent e3873e4f6e
commit 49931d1dc9
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import (
)
//参数校验
func (this *apiComp) SendCheck(session comm.IUserSession, req *pb.BuriedInquireProgressReq) (errdata *pb.ErrorData) {
func (this *apiComp) InquireProgressCheck(session comm.IUserSession, req *pb.BuriedInquireProgressReq) (errdata *pb.ErrorData) {
if len(req.Conditions) == 0 {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
@ -23,7 +23,7 @@ func (this *apiComp) InquireProgress(session comm.IUserSession, req *pb.BuriedIn
condis []*pb.ConIProgress
err error
)
if errdata = this.SendCheck(session, req); errdata != nil {
if errdata = this.InquireProgressCheck(session, req); errdata != nil {
return
}

View File

@ -29,6 +29,7 @@ type Buried struct {
wtask comm.IWtask //世界任务
smithy comm.ISmithy //铁匠朴
sociaty comm.ISociaty //工会
api *apiComp
configure *configureComp
modelBuried *modelBuried
}
@ -74,7 +75,7 @@ func (this *Buried) Start() (err error) {
// 装备组件
func (this *Buried) OnInstallComp() {
this.ModuleBase.OnInstallComp()
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
this.modelBuried = this.RegisterComp(new(modelBuried)).(*modelBuried)
}