上传主线初始化

This commit is contained in:
liwei1dao 2023-09-01 11:54:23 +08:00
parent bde7f61578
commit 54f2f6f176
2 changed files with 7 additions and 0 deletions

View File

@ -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
}

View File

@ -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)
}