休闲平台每局详情修改

This commit is contained in:
DESKTOP-45ANQ2C\unis 2025-01-02 14:27:24 +08:00
parent 4ffdb28075
commit d65d4067ce
2 changed files with 3 additions and 1 deletions

View File

@ -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"` //账号变化前数量

View File

@ -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),
})
}