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 | 150 | http.HandleFunc("/api/gambling/autoChoose", AutoChoose) //自动选号码 |
| 151 | 151 | http.HandleFunc("/api/gambling/removeCat", RemoveCat) //清除猫 |
| 152 | 152 | http.HandleFunc("/api/user/info", UserInfo) //个人信息 |
| 153 | - http.HandleFunc("api/ad/add", AddAd) //看广告 | |
| 153 | + http.HandleFunc("/api/ad/add", AddAd) //看广告 | |
| 154 | 154 | //新增的接口 |
| 155 | 155 | http.HandleFunc("/happycat/getrandredbag", Getrandredbag) //领取随机红包 |
| 156 | 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 | 1547 | break |
| 1548 | 1548 | } |
| 1549 | 1549 | |
| 1550 | - if uinfo.DoubleLeftTimes == 0 { | |
| 1550 | + if uinfo.DrawTicketTimes == 0 { | |
| 1551 | 1551 | logger.Error("HandlerQueryTurntable DoubleLeftTimes failed=%v", err) |
| 1552 | 1552 | resp.Code = 1 |
| 1553 | 1553 | resp.Message = "DoubleLeftTimes not enough" |
| 1554 | 1554 | break |
| 1555 | 1555 | } |
| 1556 | 1556 | |
| 1557 | - uinfo.DoubleLeftTimes-- | |
| 1557 | + uinfo.DrawTicketTimes-- | |
| 1558 | 1558 | uinfo.DrawTicket += 5 |
| 1559 | 1559 | if uinfo.DrawTicket > DRAWTICKETNUMLIMIT { |
| 1560 | 1560 | uinfo.DrawTicket = DRAWTICKETNUMLIMIT | ... | ... |