From a5d40fb4d638820e2fccf6e98602680560a8c383 Mon Sep 17 00:00:00 2001 From: 陆恒 Date: Tue, 23 Jun 2020 14:30:39 +0800 Subject: [PATCH] 提交 --- src/HttpServer/logic/constdef.go | 1 + src/HttpServer/logic/datadef.go | 1 + src/HttpServer/logic/logic.go | 1 + 3 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/HttpServer/logic/constdef.go b/src/HttpServer/logic/constdef.go index 3ff2da9..5779d08 100644 --- a/src/HttpServer/logic/constdef.go +++ b/src/HttpServer/logic/constdef.go @@ -64,6 +64,7 @@ const ( RANDGIFTLIMIT = 10 //每日随机红包上线次数 BOXGIFTPOS = 10 //空格礼包固定位置 BOXGIFTEXTRA = 1000 //空格礼包id下发额外加成值 + DOUBLETIMELAST = 300 //金币加速持续时间 //FLYBOXNUMLIMIT = 6 //飞天宝箱每日次数限制 FLYBOXNUMLIMIT = 5 //飞天宝箱每日次数限制 //EMPTYBOXLIMIT = 20 //空格宝箱每日限制次数 diff --git a/src/HttpServer/logic/datadef.go b/src/HttpServer/logic/datadef.go index 8cd7c9c..d425254 100644 --- a/src/HttpServer/logic/datadef.go +++ b/src/HttpServer/logic/datadef.go @@ -305,6 +305,7 @@ type AcclecteReq struct { } type AcclectData struct { LeftTimes int `json:"leftTimes"` + EndTime int `json:"endTime"` Coin DoBuyCatCoin `json:"coin"` } type AcclecteResp struct { diff --git a/src/HttpServer/logic/logic.go b/src/HttpServer/logic/logic.go index b0c18e7..ac4a901 100644 --- a/src/HttpServer/logic/logic.go +++ b/src/HttpServer/logic/logic.go @@ -2229,6 +2229,7 @@ func HandlerAcclecteGold(w http.ResponseWriter, data string, uuid int) { accrate := uinfo.Goldrate * 3 resp.Data.Coin.IcomeRate = strconv.FormatInt(accrate, 10) resp.Data.Coin.UpdateTime = int(time.Now().Unix()) + resp.Data.EndTime = uinfo.StartDoubleTime + DOUBLETIMELAST resp.Code = 0 break } -- libgit2 0.21.0