错误检测

This commit is contained in:
meixiongfeng 2023-09-13 11:33:47 +08:00
parent d0151b0eae
commit 6784338b43
63 changed files with 193 additions and 79 deletions

View File

@ -242,16 +242,6 @@ type (
GMGetAllEquip(session IUserSession, ismaxlv bool) (errdata *pb.ErrorData) GMGetAllEquip(session IUserSession, ismaxlv bool) (errdata *pb.ErrorData)
} }
IMline interface {
ModifyMlineDataByNanduID(session IUserSession, id int32) (errdata *pb.ErrorData)
/// 查询章节ID
GetUserMlineData(uid string, chapterType int32) (chapterId int32)
// 校验主线是否通关
CheckCommpleteStage(uid string, stageId int32) (b bool)
///红点
IGetReddot
}
//任务 //任务
ITask interface { ITask interface {
///红点 ///红点

View File

@ -41,7 +41,9 @@ func (this *Academy) Init(service core.IService, module core.IModule, options co
} }
func (this *Academy) Start() (err error) { func (this *Academy) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -59,7 +59,9 @@ func (this *Activity) Init(service core.IService, module core.IModule, options c
return return
} }
func (this *Activity) Start() (err error) { func (this *Activity) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
this.service.RegisterFunctionName(string(comm.Rpc_Activity), this.Rpc_Activity) this.service.RegisterFunctionName(string(comm.Rpc_Activity), this.Rpc_Activity)
var module core.IModule var module core.IModule

View File

@ -33,7 +33,9 @@ func (this *AddRecharge) Init(service core.IService, module core.IModule, option
} }
func (this *AddRecharge) Start() (err error) { func (this *AddRecharge) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -51,7 +51,9 @@ func (this *Arena) Init(service core.IService, module core.IModule, options core
return return
} }
func (this *Arena) Start() (err error) { func (this *Arena) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -53,7 +53,9 @@ func (this *Battle) Init(service core.IService, module core.IModule, options cor
return return
} }
func (this *Battle) Start() (err error) { func (this *Battle) Start() (err error) {
if err = this.ModuleBase.Start(); err != nil { if if err = this.ModuleBase.Start(); err != nil {
return
}; err != nil {
return return
} }
var module core.IModule var module core.IModule

View File

@ -45,7 +45,9 @@ func (this *BattleRecord) OnInstallComp() {
} }
func (this *BattleRecord) Start() (err error) { func (this *BattleRecord) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -48,7 +48,9 @@ func (this *Buried) Init(service core.IService, module core.IModule, options cor
} }
func (this *Buried) Start() (err error) { func (this *Buried) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleWtask); err != nil { if module, err = this.service.GetModule(comm.ModuleWtask); err != nil {

View File

@ -37,7 +37,9 @@ func (this *CaptureSheep) Init(service core.IService, module core.IModule, optio
} }
func (this *CaptureSheep) Start() (err error) { func (this *CaptureSheep) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleDragon); err != nil { if module, err = this.service.GetModule(comm.ModuleDragon); err != nil {
return return

View File

@ -43,7 +43,9 @@ func (this *Caravan) Init(service core.IService, module core.IModule, options co
} }
func (this *Caravan) Start() (err error) { func (this *Caravan) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleMail); err != nil { if module, err = this.service.GetModule(comm.ModuleMail); err != nil {
return return

View File

@ -59,7 +59,9 @@ func (this *Chat) Init(service core.IService, module core.IModule, options core.
} }
func (this *Chat) Start() (err error) { func (this *Chat) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleGM); err != nil { if module, err = this.service.GetModule(comm.ModuleGM); err != nil {
return return

View File

@ -41,7 +41,9 @@ func (this *Combat) Init(service core.IService, module core.IModule, options cor
} }
func (this *Combat) Start() (err error) { func (this *Combat) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -36,7 +36,9 @@ func (this *Dailytask) Init(service core.IService, module core.IModule, options
} }
func (this *Dailytask) Start() (err error) { func (this *Dailytask) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleWtask); err != nil { if module, err = this.service.GetModule(comm.ModuleWtask); err != nil {
return return

View File

@ -49,7 +49,9 @@ func (this *Dragon) OnInstallComp() {
this.configure = this.RegisterComp(new(configureComp)).(*configureComp) this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
} }
func (this *Dragon) Start() (err error) { func (this *Dragon) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
event.RegisterGO(comm.EventUserOffline, this.EventUserOffline) event.RegisterGO(comm.EventUserOffline, this.EventUserOffline)
return return
} }

View File

@ -39,7 +39,9 @@ func (this *Enchant) Init(service core.IService, module core.IModule, options co
} }
func (this *Enchant) Start() (err error) { func (this *Enchant) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -52,7 +52,9 @@ func (this *Equipment) Init(service core.IService, module core.IModule, options
// 模块启动接口 // 模块启动接口
// 模块启动 // 模块启动
func (this *Equipment) Start() (err error) { func (this *Equipment) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleChat); err != nil { if module, err = this.service.GetModule(comm.ModuleChat); err != nil {
return return

View File

@ -59,7 +59,9 @@ func (this *Friend) OnInstallComp() {
} }
func (this *Friend) Start() (err error) { func (this *Friend) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
this.service.RegisterFunctionName(string(comm.Rpc_ModuleFriendUseAssitHero), this.RpcUseAssisHero) this.service.RegisterFunctionName(string(comm.Rpc_ModuleFriendUseAssitHero), this.RpcUseAssisHero)
this.service.RegisterFunctionName(string(comm.Rpc_ModuleFriendDB), this.RpcFriendDB) this.service.RegisterFunctionName(string(comm.Rpc_ModuleFriendDB), this.RpcFriendDB)
this.globalConf = this.ModuleTools.GetGlobalConf() this.globalConf = this.ModuleTools.GetGlobalConf()

View File

@ -78,7 +78,9 @@ func (this *Gateway) Start() (err error) {
for name, fn := range _name2Func { for name, fn := range _name2Func {
this.service.RegisterFunctionName(name, fn) this.service.RegisterFunctionName(name, fn)
} }
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
//没有建立客户端 主动发起握手 //没有建立客户端 主动发起握手
this.service.RpcGo(context.Background(), comm.Service_Mainte, rpcx.RpcX_ShakeHands, &rpcx.ServiceNode{ this.service.RpcGo(context.Background(), comm.Service_Mainte, rpcx.RpcX_ShakeHands, &rpcx.ServiceNode{
ServiceTag: this.service.GetTag(), ServiceTag: this.service.GetTag(),

View File

@ -50,7 +50,9 @@ func (this *GM) Init(service core.IService, module core.IModule, options core.IM
// 模块初始化接口 注册用户创建角色事件 // 模块初始化接口 注册用户创建角色事件
func (this *GM) Start() (err error) { func (this *GM) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
this.service.RegisterFunctionName(string(comm.Rpc_ModuleGMCreateCmd), this.Rpc_ModuleGMCreateCmd) this.service.RegisterFunctionName(string(comm.Rpc_ModuleGMCreateCmd), this.Rpc_ModuleGMCreateCmd)
return return
} }

View File

@ -39,7 +39,9 @@ func (this *Guidance) Init(service core.IService, module core.IModule, options c
// 模块初始化接口 注册用户创建角色事件 // 模块初始化接口 注册用户创建角色事件
func (this *Guidance) Start() (err error) { func (this *Guidance) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -41,7 +41,9 @@ func (this *GuildGve) Init(service core.IService, module core.IModule, options c
return return
} }
func (this *GuildGve) Start() (err error) { func (this *GuildGve) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleSociaty); err != nil { if module, err = this.service.GetModule(comm.ModuleSociaty); err != nil {
return return

View File

@ -60,7 +60,9 @@ func (this *Hero) OnInstallComp() {
this.configure = this.RegisterComp(new(configureComp)).(*configureComp) this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
} }
func (this *Hero) Start() (err error) { func (this *Hero) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleLibrary); err != nil { if module, err = this.service.GetModule(comm.ModuleLibrary); err != nil {
return return

View File

@ -31,7 +31,9 @@ func (this *HeroTask) Init(service core.IService, module core.IModule, options c
} }
func (this *HeroTask) Start() (err error) { func (this *HeroTask) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -44,7 +44,9 @@ func (this *Horoscope) Init(service core.IService, module core.IModule, options
} }
func (this *Horoscope) Start() (err error) { func (this *Horoscope) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -40,7 +40,9 @@ func (this *Hunting) Init(service core.IService, module core.IModule, options co
} }
func (this *Hunting) Start() (err error) { func (this *Hunting) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -48,7 +48,9 @@ func (this *Items) Init(service core.IService, module core.IModule, options core
// 模块启动 // 模块启动
func (this *Items) Start() (err error) { func (this *Items) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModulePrivilege); err != nil { if module, err = this.service.GetModule(comm.ModulePrivilege); err != nil {
return return

View File

@ -31,7 +31,9 @@ func (this *KFTask) Init(service core.IService, module core.IModule, options cor
} }
func (this *KFTask) Start() (err error) { func (this *KFTask) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -48,7 +48,9 @@ func (this *Library) OnInstallComp() {
} }
func (this *Library) Start() (err error) { func (this *Library) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
this.service.RegisterFunctionName(string(comm.Rpc_ModuleFetter), this.Rpc_ModuleFetter) this.service.RegisterFunctionName(string(comm.Rpc_ModuleFetter), this.Rpc_ModuleFetter)
return return

View File

@ -45,7 +45,9 @@ func (this *ModuleLinestory) GetType() core.M_Modules {
} }
func (this *ModuleLinestory) Start() (err error) { func (this *ModuleLinestory) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
if this.confTimeline, err = this.configure.getLinestoryTimelineCfg(); err != nil { if this.confTimeline, err = this.configure.getLinestoryTimelineCfg(); err != nil {
return err return err
} }
@ -60,10 +62,10 @@ func (this *ModuleLinestory) isOverRealline(finishTasks []int32) bool {
//真实结局节点ID //真实结局节点ID
var realEndingTaskId int32 var realEndingTaskId int32
// for _, v := range this.confMaintask.GetDataList() { // for _, v := range this.confMaintask.GetDataList() {
// if v.Ending == 1 { // if v.Ending == 1 {
// realEndingTaskId = v.Id // realEndingTaskId = v.Id
// break // break
// } // }
// } // }
log.Debugln(realEndingTaskId) log.Debugln(realEndingTaskId)
// 存在真实结局节点 // 存在真实结局节点

View File

@ -52,7 +52,9 @@ func (this *Mail) Init(service core.IService, module core.IModule, options core.
return return
} }
func (this *Mail) Start() (err error) { func (this *Mail) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
this.service.RegisterFunctionName(string(comm.Rpc_Mail), this.Rpc_Mail) this.service.RegisterFunctionName(string(comm.Rpc_Mail), this.Rpc_Mail)
return return
} }

View File

@ -44,7 +44,9 @@ func (this *Mainline) OnInstallComp() {
} }
func (this *Mainline) Start() (err error) { func (this *Mainline) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -36,7 +36,9 @@ func (this *MgoLog) OnInstallComp() {
} }
func (this *MgoLog) Start() (err error) { func (this *MgoLog) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
if err != nil { if err != nil {
return return
} }

View File

@ -64,7 +64,9 @@ func (this *ModuleBase) Init(service core.IService, module core.IModule, options
// 模块启动接口 // 模块启动接口
func (this *ModuleBase) Start() (err error) { func (this *ModuleBase) Start() (err error) {
if err = this.ModuleBase.Start(); err != nil { if if err = this.ModuleBase.Start(); err != nil {
return
}; err != nil {
return return
} }
var comp core.IServiceComp var comp core.IServiceComp

View File

@ -54,7 +54,9 @@ func (this *Moonfantasy) Init(service core.IService, module core.IModule, option
} }
func (this *Moonfantasy) Start() (err error) { func (this *Moonfantasy) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleChat); err != nil { if module, err = this.service.GetModule(comm.ModuleChat); err != nil {
return return

View File

@ -38,7 +38,9 @@ func (this *Oldtimes) GetType() core.M_Modules {
} }
func (this *Oldtimes) Start() (err error) { func (this *Oldtimes) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleCombat); err != nil { if module, err = this.service.GetModule(comm.ModuleCombat); err != nil {
return return

View File

@ -68,7 +68,9 @@ func (this *Pagoda) ModifyPagodaData(uid string, data map[string]interface{}) (e
} }
func (this *Pagoda) Start() (err error) { func (this *Pagoda) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -58,7 +58,9 @@ func (this *Parkour) Init(service core.IService, module core.IModule, options co
} }
func (this *Parkour) Start() (err error) { func (this *Parkour) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
this.service.RegisterFunctionName(string(comm.RPC_ParkourMatchSucc), this.createbattle) this.service.RegisterFunctionName(string(comm.RPC_ParkourMatchSucc), this.createbattle)
event.RegisterGO(comm.EventUserOffline, this.useroffline) event.RegisterGO(comm.EventUserOffline, this.useroffline)
return return

View File

@ -49,7 +49,9 @@ func (this *Passon) Init(service core.IService, module core.IModule, options cor
return return
} }
func (this *Passon) Start() (err error) { func (this *Passon) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -52,7 +52,9 @@ func (this *Pay) Init(service core.IService, module core.IModule, options core.I
return return
} }
func (this *Pay) Start() (err error) { func (this *Pay) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModulePrivilege); err != nil { if module, err = this.service.GetModule(comm.ModulePrivilege); err != nil {
return return

View File

@ -58,7 +58,9 @@ func (this *Practice) Init(service core.IService, module core.IModule, options c
} }
func (this *Practice) Start() (err error) { func (this *Practice) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModulePvp); err != nil { if module, err = this.service.GetModule(comm.ModulePvp); err != nil {
return return

View File

@ -55,7 +55,9 @@ func (this *Privilege) Start() (err error) {
return return
} }
this.mail = module.(comm.Imail) this.mail = module.(comm.Imail)
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
event.RegisterGO(comm.EventUserOffline, this.EventUserOffline) event.RegisterGO(comm.EventUserOffline, this.EventUserOffline)
return return
} }

View File

@ -35,7 +35,9 @@ func (this *PushGiftbag) Init(service core.IService, module core.IModule, option
} }
func (this *PushGiftbag) Start() (err error) { func (this *PushGiftbag) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -53,7 +53,9 @@ func (this *Pvp) Init(service core.IService, module core.IModule, options core.I
} }
func (this *Pvp) Start() (err error) { func (this *Pvp) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -32,7 +32,9 @@ func (this *Questionnaire) Init(service core.IService, module core.IModule, opti
} }
func (this *Questionnaire) Start() (err error) { func (this *Questionnaire) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -53,7 +53,9 @@ func (this *Reddot) Init(service core.IService, module core.IModule, options cor
return return
} }
func (this *Reddot) Start() (err error) { func (this *Reddot) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleMainline); err != nil { if module, err = this.service.GetModule(comm.ModuleMainline); err != nil {

View File

@ -42,7 +42,9 @@ func (this *Reputation) GetType() core.M_Modules {
} }
func (this *Reputation) Start() (err error) { func (this *Reputation) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }
@ -66,7 +68,7 @@ func (this *Reputation) getCampLvMax(raceType int32) (maxLv int32) {
// 声望升级 // 声望升级
// raceType 阵营 fv 阵营好感度累计值 // raceType 阵营 fv 阵营好感度累计值
func (this *Reputation) Upgrade(session comm.IUserSession, raceType int32, fv int32) int32 { func (this *Reputation) Upgrade(session comm.IUserSession, raceType int32, fv int32) int32 {
uid := session.GetUserId() uid := session.GetUserId()
reputation := this.modelReputation.getDBReputation(uid) reputation := this.modelReputation.getDBReputation(uid)
if reputation == nil { if reputation == nil {
@ -103,10 +105,10 @@ func (this *Reputation) Upgrade(session comm.IUserSession, raceType int32, fv in
if nextCampConf == nil { if nextCampConf == nil {
return cnf.ReputationLv return cnf.ReputationLv
} else { } else {
if fv >= nextCampConf.ReputationExp { if fv >= nextCampConf.ReputationExp {
c.ReputationLv = nextCampConf.ReputationLv c.ReputationLv = nextCampConf.ReputationLv
reward = cnf.Reward reward = cnf.Reward
flag = true flag = true
} }
break break
} }

View File

@ -44,7 +44,9 @@ func (this *RobotModule) Init(service core.IService, module core.IModule, option
return return
} }
func (this *RobotModule) Start() (err error) { func (this *RobotModule) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -40,7 +40,9 @@ func (this *Shop) Init(service core.IService, module core.IModule, options core.
return return
} }
func (this *Shop) Start() (err error) { func (this *Shop) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleEquipment); err != nil { if module, err = this.service.GetModule(comm.ModuleEquipment); err != nil {
return return

View File

@ -35,7 +35,9 @@ func (this *ShopCenter) Init(service core.IService, module core.IModule, options
} }
func (this *ShopCenter) Start() (err error) { func (this *ShopCenter) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleMainline); err != nil { if module, err = this.service.GetModule(comm.ModuleMainline); err != nil {
return return

View File

@ -62,7 +62,9 @@ func (this *Sociaty) OnInstallComp() {
} }
func (this *Sociaty) Start() (err error) { func (this *Sociaty) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
this.service.RegisterFunctionName(string(comm.Rpc_ModuleSociaty), this.RpcGetSociaty) this.service.RegisterFunctionName(string(comm.Rpc_ModuleSociaty), this.RpcGetSociaty)
this.service.RegisterFunctionName(string(comm.Rpc_ModuleSociatyUpdate), this.RpcUpdateSociaty) this.service.RegisterFunctionName(string(comm.Rpc_ModuleSociatyUpdate), this.RpcUpdateSociaty)
this.service.RegisterFunctionName(string(comm.Rpc_ModuleSociatyTask), this.RpcUpdateUserTask) this.service.RegisterFunctionName(string(comm.Rpc_ModuleSociatyTask), this.RpcUpdateUserTask)

View File

@ -39,7 +39,9 @@ func (this *Stonehenge) Init(service core.IService, module core.IModule, options
} }
func (this *Stonehenge) Start() (err error) { func (this *Stonehenge) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -30,7 +30,9 @@ func (this *StoryLine) Init(service core.IService, module core.IModule, options
} }
func (this *StoryLine) Start() (err error) { func (this *StoryLine) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -46,7 +46,9 @@ func (this *ModuleSys) Init(service core.IService, module core.IModule, options
} }
func (this *ModuleSys) Start() (err error) { func (this *ModuleSys) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleWtask); err != nil { if module, err = this.service.GetModule(comm.ModuleWtask); err != nil {
return return

View File

@ -54,7 +54,9 @@ func (this *Timer) Init(service core.IService, module core.IModule, options core
} }
func (this *Timer) Start() (err error) { func (this *Timer) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -32,7 +32,9 @@ func (this *Tools) Init(service core.IService, module core.IModule, options core
// 模块初始化接口 注册用户创建角色事件 // 模块初始化接口 注册用户创建角色事件
func (this *Tools) Start() (err error) { func (this *Tools) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -35,7 +35,9 @@ func (this *Turntable) Init(service core.IService, module core.IModule, options
} }
func (this *Turntable) Start() (err error) { func (this *Turntable) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleMail); err != nil { if module, err = this.service.GetModule(comm.ModuleMail); err != nil {
return return

View File

@ -46,7 +46,9 @@ func (this *UiGame) OnInstallComp() {
} }
func (this *UiGame) Start() (err error) { func (this *UiGame) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -79,7 +79,9 @@ func (this *User) Init(service core.IService, module core.IModule, options core.
} }
func (this *User) Start() (err error) { func (this *User) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
event.RegisterGO(comm.EventUserOffline, this.CleanSession) event.RegisterGO(comm.EventUserOffline, this.CleanSession)
this.service.RegisterFunctionName(Rpc_GetAllOnlineUser, this.RpcGetAllOnlineUser) this.service.RegisterFunctionName(Rpc_GetAllOnlineUser, this.RpcGetAllOnlineUser)
this.service.RegisterFunctionName(Rpc_GetCrossUser, this.RpcGetCrossUser) this.service.RegisterFunctionName(Rpc_GetCrossUser, this.RpcGetCrossUser)

View File

@ -30,7 +30,9 @@ func (this *Venture) Init(service core.IService, module core.IModule, options co
} }
func (this *Venture) Start() (err error) { func (this *Venture) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -76,7 +76,9 @@ func (this *Viking) ModifyVikingData(uid string, data map[string]interface{}) (e
return return
} }
func (this *Viking) Start() (err error) { func (this *Viking) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return

View File

@ -34,7 +34,9 @@ func (this *Warorder) Init(service core.IService, module core.IModule, options c
} }
func (this *Warorder) Start() (err error) { func (this *Warorder) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
return return
} }

View File

@ -36,7 +36,9 @@ func (this *WeekTask) Init(service core.IService, module core.IModule, options c
} }
func (this *WeekTask) Start() (err error) { func (this *WeekTask) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleSys); err != nil { if module, err = this.service.GetModule(comm.ModuleSys); err != nil {
return return

View File

@ -39,7 +39,9 @@ func (this *WTask) Init(service core.IService, module core.IModule, options core
} }
func (this *WTask) Start() (err error) { func (this *WTask) Start() (err error) {
err = this.ModuleBase.Start() if err = this.ModuleBase.Start(); err != nil {
return
}
var module core.IModule var module core.IModule
if module, err = this.service.GetModule(comm.ModuleBattle); err != nil { if module, err = this.service.GetModule(comm.ModuleBattle); err != nil {
return return