上传进度代码

This commit is contained in:
liwei1dao 2023-09-04 16:25:54 +08:00
parent 2e9045e499
commit 5714107c43

View File

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