gm 主线跳过修复
This commit is contained in:
parent
34df1dbb35
commit
1c68fe0051
@ -114,26 +114,25 @@ func (this *Mline) ModifyMlineDataByNanduID(session comm.IUserSession, id int32)
|
|||||||
// 清除
|
// 清除
|
||||||
this.modelMline.cleanChapterDataById(session.GetUserId(), del...)
|
this.modelMline.cleanChapterDataById(session.GetUserId(), del...)
|
||||||
|
|
||||||
_data := this.configure.GetAllChapterID()
|
_data := this.configure.GetAllStageByChapterID(connf.Chapterid)
|
||||||
|
|
||||||
|
newData := &pb.DBMline{
|
||||||
|
Id: primitive.NewObjectID().Hex(),
|
||||||
|
Uid: session.GetUserId(),
|
||||||
|
CType: connf.Episodetype,
|
||||||
|
ChapterId: connf.Chapterid,
|
||||||
|
StageId: id,
|
||||||
|
Star: map[int32]int32{},
|
||||||
|
Award: map[int32]bool{},
|
||||||
|
Ps: map[int32]int32{},
|
||||||
|
}
|
||||||
for _, v := range _data {
|
for _, v := range _data {
|
||||||
if v <= connf.Chapterid {
|
if v <= id {
|
||||||
newData := &pb.DBMline{
|
newData.Star[v] = 3
|
||||||
Id: primitive.NewObjectID().Hex(),
|
|
||||||
Uid: session.GetUserId(),
|
|
||||||
CType: connf.Episodetype,
|
|
||||||
ChapterId: v,
|
|
||||||
StageId: id,
|
|
||||||
Star: map[int32]int32{},
|
|
||||||
Award: map[int32]bool{},
|
|
||||||
Ps: map[int32]int32{},
|
|
||||||
}
|
|
||||||
stageConf := this.configure.GetAllStageByChapterID(v)
|
|
||||||
for _, v := range stageConf {
|
|
||||||
newData.Star[v] = 3
|
|
||||||
}
|
|
||||||
this.modelMline.addNewChapter(session.GetUserId(), newData)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.modelMline.addNewChapter(session.GetUserId(), newData)
|
||||||
|
|
||||||
// 修改扩展数据
|
// 修改扩展数据
|
||||||
if rst, err := this.ModuleUser.GetUserExpand(session.GetUserId()); err == nil { // 统计主线进度
|
if rst, err := this.ModuleUser.GetUserExpand(session.GetUserId()); err == nil { // 统计主线进度
|
||||||
_mp := rst.Mline
|
_mp := rst.Mline
|
||||||
|
Loading…
Reference in New Issue
Block a user