From ace12c7902a714cb2677370cc8eed33a1d0cda0b Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Thu, 9 Jul 2020 14:50:06 +0800 Subject: [PATCH] 提亀 --- src/HttpServer/logic/datadef.go | 1 + src/HttpServer/logic/logic.go | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index d8f4d29..1ff8b6a 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -129,6 +129,7 @@ type UserInfoData struct { Auth int `json:"auth"` FriendCount int `json:"friendCount"` FriendFriendCount int `json:"friendFriendCount"` + TotalCashReward float32 `json:"totalCashReward"` } type UserInfoResp struct { diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 1f39a11..ac19c4b 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -1147,6 +1147,8 @@ func HandlerUserInfo(w http.ResponseWriter, data string, uuid int) { break } resp.Data.Cash = float32(gold) / 10000 + + resp.Data.TotalCashReward = G_randVal break } -- libgit2 0.21.0