休闲平台每局详情修改
This commit is contained in:
parent
4ffdb28075
commit
d65d4067ce
|
@ -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"` //账号变化前数量
|
||||
|
|
|
@ -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),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue