Commit 56478edfb1608bb8af710b00c57ace7d12382163
1 parent
6d4dcd94
Exists in
ver2.3.0
and in
2 other branches
提交
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
@@ -229,7 +229,7 @@ func Testapi(w http.ResponseWriter, r *http.Request) { | @@ -229,7 +229,7 @@ func Testapi(w http.ResponseWriter, r *http.Request) { | ||
229 | 229 | ||
230 | SetHeader(w) | 230 | SetHeader(w) |
231 | type TesaApiData struct { | 231 | type TesaApiData struct { |
232 | - Type int `json:"type"` //1金币 2经验 3存钱罐次数 | 232 | + Type int `json:"type"` //1金币 2经验 3存钱罐次数 6累计登录天数 |
233 | Value int `json:"value"` | 233 | Value int `json:"value"` |
234 | Gameid string `json:"gameid"` | 234 | Gameid string `json:"gameid"` |
235 | Channel string `json:"channel"` | 235 | Channel string `json:"channel"` |
@@ -295,6 +295,9 @@ func Testapi(w http.ResponseWriter, r *http.Request) { | @@ -295,6 +295,9 @@ func Testapi(w http.ResponseWriter, r *http.Request) { | ||
295 | uinfo.SignRound++ | 295 | uinfo.SignRound++ |
296 | } | 296 | } |
297 | } | 297 | } |
298 | + if rdata.Type == 6 { | ||
299 | + uinfo.SumLoginDay += rdata.Value | ||
300 | + } | ||
298 | err = SaveUserInfo(uinfo, uniqueuuid) | 301 | err = SaveUserInfo(uinfo, uniqueuuid) |
299 | if err != nil { | 302 | if err != nil { |
300 | logger.Error("SaveUserInfo err=%v", err) | 303 | logger.Error("SaveUserInfo err=%v", err) |