diff --git a/webapi/deprecated.go b/webapi/deprecated.go index c2b2149..1f50fdb 100644 --- a/webapi/deprecated.go +++ b/webapi/deprecated.go @@ -319,6 +319,7 @@ type PlatfromGamedetailReq struct { } type PlatfromPlayerScoreInfo struct { + Index string `json:"index"` //序号 SnId int32 `json:"snid"` //用户Id UserName string `json:"username"` // 账号 BeforeCount int64 `json:"beforecount"` //账号变化前数量 diff --git a/worldsrv/trascate_webapi.go b/worldsrv/trascate_webapi.go index ee835ae..a8d5b8e 100644 --- a/worldsrv/trascate_webapi.go +++ b/worldsrv/trascate_webapi.go @@ -3431,6 +3431,7 @@ func init() { }), task.CompleteNotifyWrapper(func(i interface{}, t task.Task) { for _, v := range logs { pack.Data.PlayersInfo = append(pack.Data.PlayersInfo, webapi.PlatfromPlayerScoreInfo{ + Index: v.LogId.Hex(), SnId: v.SnId, UserName: v.UserName, Count: v.Count, @@ -3439,7 +3440,7 @@ func init() { BaseCoin: v.BaseCoin, LogType: v.LogType, Remark: v.Remark, - BeforeCount: v.RestCount + v.Count, + BeforeCount: v.RestCount - v.Count, GameEndTime: v.Time.Format(time.DateTime), }) }