From 863227d5a64ede2c4e0d4792613a3fb19d9cbde5 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 26 May 2023 21:40:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/oldtimes/api_getall.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }