上传主线初始化
This commit is contained in:
parent
bde7f61578
commit
54f2f6f176
@ -15,6 +15,7 @@ import (
|
|||||||
type CaptureSheep struct {
|
type CaptureSheep struct {
|
||||||
modules.ModuleBase
|
modules.ModuleBase
|
||||||
service core.IService
|
service core.IService
|
||||||
|
dragon comm.IDragon
|
||||||
api *apiComp
|
api *apiComp
|
||||||
configure *configureComp
|
configure *configureComp
|
||||||
modelCaptureSheep *ModelCaptureSheep
|
modelCaptureSheep *ModelCaptureSheep
|
||||||
@ -36,6 +37,11 @@ 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()
|
err = this.ModuleBase.Start()
|
||||||
|
var module core.IModule
|
||||||
|
if module, err = this.service.GetModule(comm.ModuleDragon); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.dragon = module.(comm.IDragon)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ func (this *ModelMline) getMainlineData(uid string) (results *pb.DBMainline, err
|
|||||||
Exploreaward: make(map[int32]*pb.DBMainlineAward),
|
Exploreaward: make(map[int32]*pb.DBMainlineAward),
|
||||||
Groupaward: make(map[int32]*pb.DBMainlineAward),
|
Groupaward: make(map[int32]*pb.DBMainlineAward),
|
||||||
Ps: make(map[int32]int32),
|
Ps: make(map[int32]int32),
|
||||||
|
Chapterboos: make(map[int32]int32),
|
||||||
}
|
}
|
||||||
err = this.Add(uid, results)
|
err = this.Add(uid, results)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user