上传主线挂卡进度计算
This commit is contained in:
parent
c3e87e1f69
commit
41a038effc
@ -86,12 +86,12 @@ func (this *ModelMline) updateprogress(data *pb.DBMainline) {
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
}
|
||||
if conf.Progress == 1 {
|
||||
if _, ok = chapteraward[conf.Chapterid]; !ok {
|
||||
chapteraward[conf.Chapterid] = &pb.DBMainlineAward{}
|
||||
}
|
||||
chapteraward[conf.Chapterid].Stage++
|
||||
|
||||
if _, ok = chapteraward[conf.Chapterid]; !ok {
|
||||
chapteraward[conf.Chapterid] = &pb.DBMainlineAward{}
|
||||
}
|
||||
chapteraward[conf.Chapterid].Stage += conf.Progress
|
||||
|
||||
if conf.Episodetype != 8 && conf.Episodetype != 9 && conf.Episodetype != 0 {
|
||||
if _, ok = exploreaward[conf.Chapterid]; !ok {
|
||||
exploreaward[conf.Chapterid] = &pb.DBMainlineAward{}
|
||||
|
Loading…
Reference in New Issue
Block a user