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