Commit bcaed39bc00b30897bc3955a18cffb70d8d9f68b
1 parent
72aa05d3
Exists in
master
1
Showing
2 changed files
with
10 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/datadef.go
| ... | ... | @@ -30,6 +30,11 @@ type GetuserdataReq struct { |
| 30 | 30 | type GetuserdataData struct { |
| 31 | 31 | Walletgold int `json:"walletgold"` |
| 32 | 32 | Nowtime int `json:"nowtime"` |
| 33 | + Curji int `json:"curji"` | |
| 34 | + Curlevel int `json:"curlevel"` | |
| 35 | + Guanrednum int `json:"guanrednum"` | |
| 36 | + Jirednum int `json:"jirednum"` | |
| 37 | + Randnum int `json:"randnum"` | |
| 33 | 38 | |
| 34 | 39 | } |
| 35 | 40 | ... | ... |
src/HttpServer/logic/function.go
| ... | ... | @@ -104,6 +104,11 @@ func HandlerSyncuserdata(w http.ResponseWriter, data string, uuid int) { |
| 104 | 104 | |
| 105 | 105 | resp.Data.Walletgold = data.RealGold |
| 106 | 106 | resp.Data.Nowtime = int(time.Now().Unix()) |
| 107 | + resp.Data.Curji = data.BigLevel | |
| 108 | + resp.Data.Curlevel = data.PassLevel | |
| 109 | + resp.Data.Guanrednum = data.GuanRedNum | |
| 110 | + resp.Data.Jirednum = data.JiRedNum | |
| 111 | + resp.Data.Randnum = data.RandNum | |
| 107 | 112 | SaveUserInfo(data, uniqueuuid) |
| 108 | 113 | |
| 109 | 114 | resp.Code = 0 | ... | ... |