上传代码
This commit is contained in:
parent
84580a242d
commit
863227d5a6
@ -78,12 +78,12 @@ func (this *apiComp) Getall(session comm.IUserSession, req *pb.OldtimesGetallReq
|
||||
if levelConf != nil {
|
||||
chapter := this.module.modelOldtimes.getChatper(levelConf.Group, d)
|
||||
if chapter != nil {
|
||||
chapter.Levels = append(chapter.Levels, &pb.Level{Lid: lid})
|
||||
chapter.Levels = append(chapter.Levels, &pb.Level{Lid: lid, Status: int32(unlock)})
|
||||
} else {
|
||||
chapter := &pb.Chapter{
|
||||
Cid: levelConf.Group,
|
||||
}
|
||||
chapter.Levels = append(chapter.Levels, &pb.Level{Lid: lid})
|
||||
chapter.Levels = append(chapter.Levels, &pb.Level{Lid: lid, Status: int32(unlock)})
|
||||
d.Chapters = append(d.Chapters, chapter)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user