上传进度代码
This commit is contained in:
parent
2e9045e499
commit
5714107c43
@ -167,8 +167,17 @@ func (this *ModelMline) randomboos(data *pb.DBMainline) (err error) {
|
||||
weight []int32 = make([]int32, 0)
|
||||
conf *cfg.GameMainChapterData
|
||||
index int32
|
||||
ok bool
|
||||
)
|
||||
for k, _ := range data.Chapteraward {
|
||||
|
||||
for k, levles := range this.module.configure.getchapterMap() {
|
||||
for _, v := range levles {
|
||||
if v.Progress == 1 {
|
||||
if _, ok = data.Level[v.Id]; !ok {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
chapters = append(chapters, k)
|
||||
}
|
||||
if len(chapters) == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user