diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index 8a83fec..93a468b 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -229,7 +229,7 @@ func Testapi(w http.ResponseWriter, r *http.Request) { SetHeader(w) type TesaApiData struct { - Type int `json:"type"` //1金币 2经验 3存钱罐次数 + Type int `json:"type"` //1金币 2经验 3存钱罐次数 6累计登录天数 Value int `json:"value"` Gameid string `json:"gameid"` Channel string `json:"channel"` @@ -295,6 +295,9 @@ func Testapi(w http.ResponseWriter, r *http.Request) { uinfo.SignRound++ } } + if rdata.Type == 6 { + uinfo.SumLoginDay += rdata.Value + } err = SaveUserInfo(uinfo, uniqueuuid) if err != nil { logger.Error("SaveUserInfo err=%v", err) -- libgit2 0.21.0