From d65d4067ce5f8c663283bc861efab518e8389415 Mon Sep 17 00:00:00 2001 From: "DESKTOP-45ANQ2C\\unis" <121212121@qq.com> Date: Thu, 2 Jan 2025 14:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=91=E9=97=B2=E5=B9=B3=E5=8F=B0=E6=AF=8F?= =?UTF-8?q?=E5=B1=80=E8=AF=A6=E6=83=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapi/deprecated.go | 1 + worldsrv/trascate_webapi.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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), }) }