。。。
This commit is contained in:
parent
fa15d16231
commit
1caf66f729
@ -3,11 +3,8 @@ package user
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/sys/configure"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
|
||||
"github.com/liwei1dao/lego/core"
|
||||
"github.com/liwei1dao/lego/sys/log"
|
||||
)
|
||||
|
||||
func NewModule() core.IModule {
|
||||
@ -28,22 +25,3 @@ func (this *User) OnInstallComp() {
|
||||
this.ModuleBase.OnInstallComp()
|
||||
this.login_comp = this.RegisterComp(new(LoginComp)).(*LoginComp)
|
||||
}
|
||||
|
||||
func (this *Login) Start() (err error) {
|
||||
|
||||
if err = configure.RegisterConfigure("tbitem.json", cfg.NewTbItem); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if data, ret := configure.GetConfigure("tbitem.json"); ret == nil {
|
||||
_data := data.(*cfg.TbItem).GetDataMap()
|
||||
for _, v := range _data {
|
||||
if v.Id > 0 {
|
||||
break
|
||||
}
|
||||
log.Debugf(v.Name)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user