Commit 8885a51d22703f024246843695a8002ca41f164a

Authored by 陆恒
1 parent f8f96fb4
Exists in master

提交

src/HttpServer/logic/datadef.go
@@ -56,10 +56,11 @@ type FetchproteryboxReq struct { @@ -56,10 +56,11 @@ type FetchproteryboxReq struct {
56 } 56 }
57 57
58 type FetchproteryboxData struct { 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 type FetchproteryboxResp struct { 66 type FetchproteryboxResp struct {
@@ -158,6 +159,9 @@ type UserloginData struct { @@ -158,6 +159,9 @@ type UserloginData struct {
158 RegisterTime int `json:"registerTime"` 159 RegisterTime int `json:"registerTime"`
159 Id string `json:"id"` 160 Id string `json:"id"`
160 PlayerData string `json:"playerData"` 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 type UserloginResp struct { 167 type UserloginResp struct {
src/HttpServer/logic/logic.go
@@ -103,6 +103,9 @@ func HandlerUserlogin(w http.ResponseWriter, data string) { @@ -103,6 +103,9 @@ func HandlerUserlogin(w http.ResponseWriter, data string) {
103 resp.RetData.PlayerData = tmp.PlayerData 103 resp.RetData.PlayerData = tmp.PlayerData
104 resp.RetData.Id = rdata.Openid 104 resp.RetData.Id = rdata.Openid
105 resp.RetData.RegisterTime = tmp.RegTime 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 break 109 break
107 } 110 }
108 uinfo, err := GetUserInfo(rdata.Openid) 111 uinfo, err := GetUserInfo(rdata.Openid)
@@ -117,7 +120,9 @@ func HandlerUserlogin(w http.ResponseWriter, data string) { @@ -117,7 +120,9 @@ func HandlerUserlogin(w http.ResponseWriter, data string) {
117 resp.RetData.IsNew = 0 120 resp.RetData.IsNew = 0
118 resp.RetData.Id = rdata.Openid 121 resp.RetData.Id = rdata.Openid
119 resp.RetData.PlayerData = uinfo.PlayerData 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 break 126 break
122 } 127 }
123 //回包 128 //回包
@@ -422,6 +427,7 @@ func HandlerFetchproterybox(w http.ResponseWriter, data string) { @@ -422,6 +427,7 @@ func HandlerFetchproterybox(w http.ResponseWriter, data string) {
422 resp.RetData.Sumgold = sumgold 427 resp.RetData.Sumgold = sumgold
423 resp.RetData.Curlevle = uinfo.CalcCurLe() 428 resp.RetData.Curlevle = uinfo.CalcCurLe()
424 resp.RetData.Leftcnt = uinfo.LeftCnt 429 resp.RetData.Leftcnt = uinfo.LeftCnt
  430 + resp.RetData.Curpoerty = uinfo.Property
425 431
426 //保存 432 //保存
427 err = SaveUserInfo(uinfo) 433 err = SaveUserInfo(uinfo)