Commit a5d40fb4d638820e2fccf6e98602680560a8c383
1 parent
d337745d
Exists in
master
提交
Showing
3 changed files
with
3 additions
and
0 deletions
Show diff stats
src/HttpServer/logic/constdef.go
@@ -64,6 +64,7 @@ const ( | @@ -64,6 +64,7 @@ const ( | ||
64 | RANDGIFTLIMIT = 10 //每日随机红包上线次数 | 64 | RANDGIFTLIMIT = 10 //每日随机红包上线次数 |
65 | BOXGIFTPOS = 10 //空格礼包固定位置 | 65 | BOXGIFTPOS = 10 //空格礼包固定位置 |
66 | BOXGIFTEXTRA = 1000 //空格礼包id下发额外加成值 | 66 | BOXGIFTEXTRA = 1000 //空格礼包id下发额外加成值 |
67 | + DOUBLETIMELAST = 300 //金币加速持续时间 | ||
67 | //FLYBOXNUMLIMIT = 6 //飞天宝箱每日次数限制 | 68 | //FLYBOXNUMLIMIT = 6 //飞天宝箱每日次数限制 |
68 | FLYBOXNUMLIMIT = 5 //飞天宝箱每日次数限制 | 69 | FLYBOXNUMLIMIT = 5 //飞天宝箱每日次数限制 |
69 | //EMPTYBOXLIMIT = 20 //空格宝箱每日限制次数 | 70 | //EMPTYBOXLIMIT = 20 //空格宝箱每日限制次数 |
src/HttpServer/logic/datadef.go
@@ -305,6 +305,7 @@ type AcclecteReq struct { | @@ -305,6 +305,7 @@ type AcclecteReq struct { | ||
305 | } | 305 | } |
306 | type AcclectData struct { | 306 | type AcclectData struct { |
307 | LeftTimes int `json:"leftTimes"` | 307 | LeftTimes int `json:"leftTimes"` |
308 | + EndTime int `json:"endTime"` | ||
308 | Coin DoBuyCatCoin `json:"coin"` | 309 | Coin DoBuyCatCoin `json:"coin"` |
309 | } | 310 | } |
310 | type AcclecteResp struct { | 311 | type AcclecteResp struct { |
src/HttpServer/logic/logic.go
@@ -2229,6 +2229,7 @@ func HandlerAcclecteGold(w http.ResponseWriter, data string, uuid int) { | @@ -2229,6 +2229,7 @@ func HandlerAcclecteGold(w http.ResponseWriter, data string, uuid int) { | ||
2229 | accrate := uinfo.Goldrate * 3 | 2229 | accrate := uinfo.Goldrate * 3 |
2230 | resp.Data.Coin.IcomeRate = strconv.FormatInt(accrate, 10) | 2230 | resp.Data.Coin.IcomeRate = strconv.FormatInt(accrate, 10) |
2231 | resp.Data.Coin.UpdateTime = int(time.Now().Unix()) | 2231 | resp.Data.Coin.UpdateTime = int(time.Now().Unix()) |
2232 | + resp.Data.EndTime = uinfo.StartDoubleTime + DOUBLETIMELAST | ||
2232 | resp.Code = 0 | 2233 | resp.Code = 0 |
2233 | break | 2234 | break |
2234 | } | 2235 | } |