Commit 56478edfb1608bb8af710b00c57ace7d12382163

Authored by 陆恒
1 parent 6d4dcd94

提交

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 229  
230 230 SetHeader(w)
231 231 type TesaApiData struct {
232   - Type int `json:"type"` //1金币 2经验 3存钱罐次数
  232 + Type int `json:"type"` //1金币 2经验 3存钱罐次数 6累计登录天数
233 233 Value int `json:"value"`
234 234 Gameid string `json:"gameid"`
235 235 Channel string `json:"channel"`
... ... @@ -295,6 +295,9 @@ func Testapi(w http.ResponseWriter, r *http.Request) {
295 295 uinfo.SignRound++
296 296 }
297 297 }
  298 + if rdata.Type == 6 {
  299 + uinfo.SumLoginDay += rdata.Value
  300 + }
298 301 err = SaveUserInfo(uinfo, uniqueuuid)
299 302 if err != nil {
300 303 logger.Error("SaveUserInfo err=%v", err)
... ...