上传坐骑变更
This commit is contained in:
parent
fa73f04193
commit
b917b9cd72
@ -28,7 +28,14 @@ func (this *apiComp) ChangeMts(session comm.IUserSession, req *pb.CapturesheepCh
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
if dragon, err = this.module.dragon.QueryDragonById(session.GetUserId(), req.Mid); err != nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_DBError,
|
||||
Title: pb.ErrorCode_DBError.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
info.Defmts = dragon.Id
|
||||
if err = this.module.modelCaptureSheep.Change(session.GetUserId(), map[string]interface{}{
|
||||
"defmts": info.Defmts,
|
||||
@ -40,6 +47,6 @@ func (this *apiComp) ChangeMts(session comm.IUserSession, req *pb.CapturesheepCh
|
||||
}
|
||||
return
|
||||
}
|
||||
session.SendMsg(string(this.module.GetType()), "changemts", &pb.CapturesheepChangeMtsResp{})
|
||||
session.SendMsg(string(this.module.GetType()), "changemts", &pb.CapturesheepChangeMtsResp{Mid: req.Mid})
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user