上传模块代码
This commit is contained in:
parent
2febf8cfaf
commit
4f18818c37
@ -23,10 +23,11 @@ type Activity struct {
|
||||
modelhdData *modelhdData
|
||||
|
||||
mail comm.Imail
|
||||
warorder comm.IWarorder // 战令
|
||||
pay comm.IPay // 支付
|
||||
shopcenter comm.IShopcenter // 活动中心
|
||||
addrecharge comm.IAddrecharge // 活动中心
|
||||
warorder comm.IWarorder // 战令
|
||||
pay comm.IPay // 支付
|
||||
shopcenter comm.IShopcenter // 活动中心
|
||||
addrecharge comm.IAddrecharge // 活动中心
|
||||
kftask comm.IActivityNotice // 开服任务
|
||||
}
|
||||
|
||||
func NewModule() core.IModule {
|
||||
@ -77,6 +78,10 @@ func (this *Activity) Start() (err error) {
|
||||
return
|
||||
}
|
||||
this.addrecharge = module.(comm.IAddrecharge)
|
||||
if module, err = this.service.GetModule(comm.ModuleKFTask); err != nil {
|
||||
return
|
||||
}
|
||||
this.kftask = module.(comm.IActivityNotice)
|
||||
event.RegisterGO(comm.EventUserLogin, this.EventUserLogin)
|
||||
if !db.IsCross() {
|
||||
this.modelhdList.LoadActivityData()
|
||||
@ -94,6 +99,9 @@ func (this *Activity) Start() (err error) {
|
||||
case pb.HdType_AddUpRecharge:
|
||||
this.addrecharge.ActivityOpenNotice(v)
|
||||
break
|
||||
case pb.HdType_KFSevenTask:
|
||||
this.kftask.ActivityOpenNotice(v)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user