模块注册
This commit is contained in:
parent
e1dc59f4fb
commit
75bfe5e688
@ -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
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
@ -132,7 +132,6 @@ func main() {
|
||||
wtask.NewModule(),
|
||||
passon.NewModule(),
|
||||
warorder.NewModule(),
|
||||
activity.NewModule(),
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user