diff --git a/src/HttpServer/logic/httpserver.go b/src/HttpServer/logic/httpserver.go index 3e45f94..f02cf02 100644 --- a/src/HttpServer/logic/httpserver.go +++ b/src/HttpServer/logic/httpserver.go @@ -312,7 +312,7 @@ func GetMainPageInfo(w http.ResponseWriter, r *http.Request) { r.Body.Close() s := string(result) - logger.Info("GetMainPageInfo , body:%v,uuid=%v", s, Uuid) + //logger.Info("GetMainPageInfo , body:%v,uuid=%v", s, Uuid) HandlerGetMainPageInfo(w, s, Uuid) } @@ -1086,7 +1086,7 @@ func GetUserData(w http.ResponseWriter, r *http.Request) { r.Body.Close() s := string(result) - logger.Info("GetUserData , body:%v,uuid=%v", s, Uuid) + //logger.Info("GetUserData , body:%v,uuid=%v", s, Uuid) HandlerGetUserData(w, s, Uuid) } diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index 37cf32d..f24d858 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -312,7 +312,13 @@ func HandlerGetUserData(w http.ResponseWriter, data string, uuid int) { uinfo.Gold += addgold uinfo.GoldSum += addgold uinfo.AddToRank() - resp.Data.Output = strconv.FormatInt(uinfo.Goldrate, 10) + + output := uinfo.Goldrate + + if uinfo.IsDouble == 1 { + output = uinfo.Goldrate * 3 + } + resp.Data.Output = strconv.FormatInt(output, 10) resp.Data.Coin = strconv.FormatInt(uinfo.Gold, 10) logger.Info("HandlerGetUserData addgold=%v", addgold) @@ -499,7 +505,7 @@ func HandlerGetMainPageInfo(w http.ResponseWriter, data string, uuid int) { //保存此次计算时间 nowtimestr := strconv.FormatInt(nowtime, 10) redishandler.GetRedisClient().HSet(redis.USER_LAST_CALC_TIME, strconv.Itoa(uuid), nowtimestr) - logger.Info("HandlerGetMainPageInfo save USER_LAST_CALC_TIME time=%v", nowtimestr) + //logger.Info("HandlerGetMainPageInfo save USER_LAST_CALC_TIME time=%v", nowtimestr) redlist := uinfo.GetRedCatIdList() resp.Data.LimitCatList = append(resp.Data.LimitCatList, redlist...) -- libgit2 0.21.0