diff --git a/server/matchserver/common/types.go b/server/matchserver/common/types.go index 785bb771..ba30a176 100644 --- a/server/matchserver/common/types.go +++ b/server/matchserver/common/types.go @@ -32,6 +32,8 @@ type LoginRsp struct { SpecSkill string `json:"spec_skill"` Wealth interface{} `json:"wealth"` ValidLefttime interface{} `json:"valid_lefttime"` + CurrentTimes interface{} `json:"current_times"` + TotalTimes interface{} `json:"total_times"` } `json:"hero_info"` MapInfo *MapInfoRsp `json:"map_info"` } `json:"info"` @@ -59,6 +61,8 @@ type UserRsp struct { SpecSkill string `json:"spec_skill"` Wealth interface{} `json:"wealth"` ValidLefttime interface{} `json:"valid_lefttime"` + CurrentTimes interface{} `json:"current_times"` + TotalTimes interface{} `json:"total_times"` } `json:"hero_info"` } `json:"info"` } @@ -104,6 +108,8 @@ type UpdateBattleInfoRsp struct { SpecSkill string `json:"spec_skill"` Wealth interface{} `json:"wealth"` ValidLefttime interface{} `json:"valid_lefttime"` + CurrentTimes interface{} `json:"current_times"` + TotalTimes interface{} `json:"total_times"` } `json:"hero_info"` } `json:"info"` } diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index afaf4b75..ac50ae06 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -19,6 +19,8 @@ type hero struct { specSkill int32 wealth int32 validLeftTime int32 + currentTimes int32 + totalTimes int32 } type player struct { diff --git a/server/matchserver/proto/cs_proto.proto b/server/matchserver/proto/cs_proto.proto index 87f7c24d..bc6f3f15 100644 --- a/server/matchserver/proto/cs_proto.proto +++ b/server/matchserver/proto/cs_proto.proto @@ -110,6 +110,8 @@ message MFHero { optional int32 hero_id = 1; //英雄id optional int32 quality = 2; //英雄品阶 + optional int32 current_times = 3; //当前打金次数 + optional int32 total_times = 4; //总打金次数 } //加入房间消息