Commit 8885a51d22703f024246843695a8002ca41f164a
1 parent
f8f96fb4
Exists in
master
提交
Showing
2 changed files
with
15 additions
and
5 deletions
Show diff stats
src/HttpServer/logic/datadef.go
... | ... | @@ -56,10 +56,11 @@ type FetchproteryboxReq struct { |
56 | 56 | } |
57 | 57 | |
58 | 58 | type FetchproteryboxData struct { |
59 | - Goldnum int `json:"goldnum"` | |
60 | - Sumgold int `json:"sumgold"` | |
61 | - Curlevle int64 `json:"curlevle"` | |
62 | - Leftcnt int `json:"leftcnt"` | |
59 | + Goldnum int `json:"goldnum"` | |
60 | + Sumgold int `json:"sumgold"` | |
61 | + Curlevle int64 `json:"curlevle"` | |
62 | + Leftcnt int `json:"leftcnt"` | |
63 | + Curpoerty int64 `json:"curpoerty"` | |
63 | 64 | } |
64 | 65 | |
65 | 66 | type FetchproteryboxResp struct { |
... | ... | @@ -158,6 +159,9 @@ type UserloginData struct { |
158 | 159 | RegisterTime int `json:"registerTime"` |
159 | 160 | Id string `json:"id"` |
160 | 161 | PlayerData string `json:"playerData"` |
162 | + Curround int `json:"curround"` | |
163 | + Curday int `json:"curday"` | |
164 | + Issigntaday int `json:"issigntaday"` | |
161 | 165 | } |
162 | 166 | |
163 | 167 | type UserloginResp struct { | ... | ... |
src/HttpServer/logic/logic.go
... | ... | @@ -103,6 +103,9 @@ func HandlerUserlogin(w http.ResponseWriter, data string) { |
103 | 103 | resp.RetData.PlayerData = tmp.PlayerData |
104 | 104 | resp.RetData.Id = rdata.Openid |
105 | 105 | resp.RetData.RegisterTime = tmp.RegTime |
106 | + resp.RetData.Curday = tmp.SingDay | |
107 | + resp.RetData.Curround = tmp.SignRound | |
108 | + resp.RetData.Issigntaday = tmp.IsSign | |
106 | 109 | break |
107 | 110 | } |
108 | 111 | uinfo, err := GetUserInfo(rdata.Openid) |
... | ... | @@ -117,7 +120,9 @@ func HandlerUserlogin(w http.ResponseWriter, data string) { |
117 | 120 | resp.RetData.IsNew = 0 |
118 | 121 | resp.RetData.Id = rdata.Openid |
119 | 122 | resp.RetData.PlayerData = uinfo.PlayerData |
120 | - | |
123 | + resp.RetData.Curday = uinfo.SingDay | |
124 | + resp.RetData.Curround = uinfo.SignRound | |
125 | + resp.RetData.Issigntaday = uinfo.IsSign | |
121 | 126 | break |
122 | 127 | } |
123 | 128 | //回包 |
... | ... | @@ -422,6 +427,7 @@ func HandlerFetchproterybox(w http.ResponseWriter, data string) { |
422 | 427 | resp.RetData.Sumgold = sumgold |
423 | 428 | resp.RetData.Curlevle = uinfo.CalcCurLe() |
424 | 429 | resp.RetData.Leftcnt = uinfo.LeftCnt |
430 | + resp.RetData.Curpoerty = uinfo.Property | |
425 | 431 | |
426 | 432 | //保存 |
427 | 433 | err = SaveUserInfo(uinfo) | ... | ... |