From 56478edfb1608bb8af710b00c57ace7d12382163 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Wed, 17 Jun 2020 15:27:29 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/httpserver.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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