gm 跳转设置stageid

This commit is contained in:
meixiongfeng 2023-06-15 22:28:13 +08:00
parent 5903234295
commit d253ece803

View File

@ -123,7 +123,7 @@ func (this *Mline) ModifyMlineDataByNanduID(session comm.IUserSession, id int32)
} }
for _, v := range _data { for _, v := range _data {
if v <= id { if v <= id {
newData.Star[v] = 3 newData.Star[v] = 7
} }
} }
this.modelMline.addNewChapter(session.GetUserId(), newData) this.modelMline.addNewChapter(session.GetUserId(), newData)
@ -134,7 +134,7 @@ func (this *Mline) ModifyMlineDataByNanduID(session comm.IUserSession, id int32)
Uid: session.GetUserId(), Uid: session.GetUserId(),
CType: connf.Episodetype, CType: connf.Episodetype,
ChapterId: connf.Chapterid, ChapterId: connf.Chapterid,
StageId: id, StageId: 0,
Star: map[int32]int32{}, Star: map[int32]int32{},
Award: map[int32]bool{}, Award: map[int32]bool{},
Ps: map[int32]int32{}, Ps: map[int32]int32{},
@ -142,7 +142,8 @@ func (this *Mline) ModifyMlineDataByNanduID(session comm.IUserSession, id int32)
_data := this.configure.GetAllStageByChapterID(v) _data := this.configure.GetAllStageByChapterID(v)
for _, v := range _data { for _, v := range _data {
if v <= id { if v <= id {
newData.Star[v] = 3 newData.Star[v] = 7
newData.StageId = v
} }
} }
this.modelMline.addNewChapter(session.GetUserId(), newData) this.modelMline.addNewChapter(session.GetUserId(), newData)