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