修复月子秘境数据更新异常bug
This commit is contained in:
parent
a26f05416f
commit
2e6def8232
@ -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,
|
||||
})
|
||||
}
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user