模块注册

This commit is contained in:
meixiongfeng 2023-07-13 16:45:59 +08:00
parent e1dc59f4fb
commit 75bfe5e688
3 changed files with 6 additions and 6 deletions

View File

@ -56,11 +56,11 @@ func (this *Activity) Start() (err error) {
m.OpenWarorder(2, rst.Stime)
}
}
// if module, err = this.service.GetModule(comm.ModulePay); err == nil {
// if m, ok := module.(comm.IPay); ok {
// m.OpenActivity(1, rst.Stime)
// }
// }
if module, err = this.service.GetModule(comm.ModulePay); err == nil {
if m, ok := module.(comm.IPay); ok {
m.OpenActivity(1, rst.Stime)
}
}
}
return
}

View File

@ -71,6 +71,7 @@ func (this *Pay) OnInstallComp() {
this.modelPay = this.RegisterComp(new(modelPayComp)).(*modelPayComp)
this.modelPayUser = this.RegisterComp(new(modelPayUserComp)).(*modelPayUserComp)
this.modelDaily = this.RegisterComp(new(modelDailyComp)).(*modelDailyComp)
this.modelActivity = this.RegisterComp(new(modelActivityComp)).(*modelActivityComp)
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
}

View File

@ -132,7 +132,6 @@ func main() {
wtask.NewModule(),
passon.NewModule(),
warorder.NewModule(),
activity.NewModule(),
)
}