修复月子秘境数据更新异常bug

This commit is contained in:
liwei 2022-10-24 16:38:18 +08:00
parent a26f05416f
commit 2e6def8232
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ func (this *apiComp) Ask(session comm.IUserSession, req *pb.MoonfantasyAskReq) (
return
}
mdata.Join = append(mdata.Join, &pb.UserInfo{Uid: user.Uid, Name: user.Name, Avatar: user.Avatar, Lv: user.Lv})
this.module.modelDream.Change(mdata.Id, map[string]interface{}{
this.module.modelDream.ChangeList("", mdata.Id, map[string]interface{}{
"join": mdata.Join,
})
}

View File

@ -30,7 +30,7 @@ func (this *apiComp) Battle(session comm.IUserSession, req *pb.MoonfantasyBattle
this.module.modelUserMF.Change(session.GetUserId(), map[string]interface{}{
"battleNum": umfantasy.BattleNum,
})
this.module.modelDream.Change(mdata.Id, map[string]interface{}{
this.module.modelDream.ChangeList("", mdata.Id, map[string]interface{}{
"record": mdata.Record,
})
session.SendMsg(string(this.module.GetType()), "battle", &pb.MoonfantasyBattleResp{