上传埋点协议
This commit is contained in:
parent
e3873e4f6e
commit
49931d1dc9
@ -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 {
|
if len(req.Conditions) == 0 {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_ReqParameterError,
|
Code: pb.ErrorCode_ReqParameterError,
|
||||||
@ -23,7 +23,7 @@ func (this *apiComp) InquireProgress(session comm.IUserSession, req *pb.BuriedIn
|
|||||||
condis []*pb.ConIProgress
|
condis []*pb.ConIProgress
|
||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
if errdata = this.SendCheck(session, req); errdata != nil {
|
if errdata = this.InquireProgressCheck(session, req); errdata != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ type Buried struct {
|
|||||||
wtask comm.IWtask //世界任务
|
wtask comm.IWtask //世界任务
|
||||||
smithy comm.ISmithy //铁匠朴
|
smithy comm.ISmithy //铁匠朴
|
||||||
sociaty comm.ISociaty //工会
|
sociaty comm.ISociaty //工会
|
||||||
|
api *apiComp
|
||||||
configure *configureComp
|
configure *configureComp
|
||||||
modelBuried *modelBuried
|
modelBuried *modelBuried
|
||||||
}
|
}
|
||||||
@ -74,7 +75,7 @@ func (this *Buried) Start() (err error) {
|
|||||||
// 装备组件
|
// 装备组件
|
||||||
func (this *Buried) OnInstallComp() {
|
func (this *Buried) OnInstallComp() {
|
||||||
this.ModuleBase.OnInstallComp()
|
this.ModuleBase.OnInstallComp()
|
||||||
|
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
|
||||||
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
|
||||||
this.modelBuried = this.RegisterComp(new(modelBuried)).(*modelBuried)
|
this.modelBuried = this.RegisterComp(new(modelBuried)).(*modelBuried)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user