Commit ace12c7902a714cb2677370cc8eed33a1d0cda0b

Authored by 陆恒
1 parent 064d037c
Exists in master

提交

src/HttpServer/logic/datadef.go
@@ -129,6 +129,7 @@ type UserInfoData struct { @@ -129,6 +129,7 @@ type UserInfoData struct {
129 Auth int `json:"auth"` 129 Auth int `json:"auth"`
130 FriendCount int `json:"friendCount"` 130 FriendCount int `json:"friendCount"`
131 FriendFriendCount int `json:"friendFriendCount"` 131 FriendFriendCount int `json:"friendFriendCount"`
  132 + TotalCashReward float32 `json:"totalCashReward"`
132 } 133 }
133 134
134 type UserInfoResp struct { 135 type UserInfoResp struct {
src/HttpServer/logic/logic.go
@@ -1147,6 +1147,8 @@ func HandlerUserInfo(w http.ResponseWriter, data string, uuid int) { @@ -1147,6 +1147,8 @@ func HandlerUserInfo(w http.ResponseWriter, data string, uuid int) {
1147 break 1147 break
1148 } 1148 }
1149 resp.Data.Cash = float32(gold) / 10000 1149 resp.Data.Cash = float32(gold) / 10000
  1150 +
  1151 + resp.Data.TotalCashReward = G_randVal
1150 break 1152 break
1151 } 1153 }
1152 1154