diff --git a/modules/oldtimes/api_getall.go b/modules/oldtimes/api_getall.go index 63619382c..72088b8cd 100644 --- a/modules/oldtimes/api_getall.go +++ b/modules/oldtimes/api_getall.go @@ -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) } }