Commit 6541a06110fac207a7aeb68093e40a649e07a38b
1 parent
e854c69c
Exists in
master
提交
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
src/HttpServer/logic/httpserver.go
@@ -150,7 +150,7 @@ func startServerHttpServe() { | @@ -150,7 +150,7 @@ func startServerHttpServe() { | ||
150 | http.HandleFunc("/api/gambling/autoChoose", AutoChoose) //自动选号码 | 150 | http.HandleFunc("/api/gambling/autoChoose", AutoChoose) //自动选号码 |
151 | http.HandleFunc("/api/gambling/removeCat", RemoveCat) //清除猫 | 151 | http.HandleFunc("/api/gambling/removeCat", RemoveCat) //清除猫 |
152 | http.HandleFunc("/api/user/info", UserInfo) //个人信息 | 152 | http.HandleFunc("/api/user/info", UserInfo) //个人信息 |
153 | - http.HandleFunc("api/ad/add", AddAd) //看广告 | 153 | + http.HandleFunc("/api/ad/add", AddAd) //看广告 |
154 | //新增的接口 | 154 | //新增的接口 |
155 | http.HandleFunc("/happycat/getrandredbag", Getrandredbag) //领取随机红包 | 155 | http.HandleFunc("/happycat/getrandredbag", Getrandredbag) //领取随机红包 |
156 | http.HandleFunc("/happycat/generatebox", Generatebox) //请求刷出空格礼包 | 156 | http.HandleFunc("/happycat/generatebox", Generatebox) //请求刷出空格礼包 |
src/HttpServer/logic/logic.go
@@ -1547,14 +1547,14 @@ func HandlerAddTicket(w http.ResponseWriter, data string, uuid int) { | @@ -1547,14 +1547,14 @@ func HandlerAddTicket(w http.ResponseWriter, data string, uuid int) { | ||
1547 | break | 1547 | break |
1548 | } | 1548 | } |
1549 | 1549 | ||
1550 | - if uinfo.DoubleLeftTimes == 0 { | 1550 | + if uinfo.DrawTicketTimes == 0 { |
1551 | logger.Error("HandlerQueryTurntable DoubleLeftTimes failed=%v", err) | 1551 | logger.Error("HandlerQueryTurntable DoubleLeftTimes failed=%v", err) |
1552 | resp.Code = 1 | 1552 | resp.Code = 1 |
1553 | resp.Message = "DoubleLeftTimes not enough" | 1553 | resp.Message = "DoubleLeftTimes not enough" |
1554 | break | 1554 | break |
1555 | } | 1555 | } |
1556 | 1556 | ||
1557 | - uinfo.DoubleLeftTimes-- | 1557 | + uinfo.DrawTicketTimes-- |
1558 | uinfo.DrawTicket += 5 | 1558 | uinfo.DrawTicket += 5 |
1559 | if uinfo.DrawTicket > DRAWTICKETNUMLIMIT { | 1559 | if uinfo.DrawTicket > DRAWTICKETNUMLIMIT { |
1560 | uinfo.DrawTicket = DRAWTICKETNUMLIMIT | 1560 | uinfo.DrawTicket = DRAWTICKETNUMLIMIT |