Commit a997a3b080eaa1bac3ca18426b4e1f329894726f
1 parent
0a421d34
fix: 一番赏 打开消耗票的功能
Showing
2 changed files
with
2 additions
and
7 deletions
Show diff stats
src/actions/CapsuleAction.lua
| @@ -122,8 +122,8 @@ function _M.drawRpc(agent, data) | @@ -122,8 +122,8 @@ function _M.drawRpc(agent, data) | ||
| 122 | end | 122 | end |
| 123 | cost[token[1]] = drawsNum * token[2] | 123 | cost[token[1]] = drawsNum * token[2] |
| 124 | 124 | ||
| 125 | - --if not role:checkItemEnough(cost) then return 2 end | ||
| 126 | - --role:costItems(cost, {log = {desc = "CapsuleCoinCost", int1 = token[1], int2 = cost[token[1]]}}) | 125 | + if not role:checkItemEnough(cost) then return 2 end |
| 126 | + role:costItems(cost, {log = {desc = "CapsuleCoinCost", int1 = token[1], int2 = cost[token[1]]}}) | ||
| 127 | 127 | ||
| 128 | --开始抽奖 | 128 | --开始抽奖 |
| 129 | if typ == 1 then | 129 | if typ == 1 then |
src/models/Capsule.lua
| @@ -530,21 +530,16 @@ function Capsule:checkSpecialReward( now) | @@ -530,21 +530,16 @@ function Capsule:checkSpecialReward( now) | ||
| 530 | 530 | ||
| 531 | local notify = self:getTop(record, recordAmount,now) or {} | 531 | local notify = self:getTop(record, recordAmount,now) or {} |
| 532 | 532 | ||
| 533 | - dump(notify) | ||
| 534 | local coreReward = self:getCore(record, recordAmount, now) | 533 | local coreReward = self:getCore(record, recordAmount, now) |
| 535 | - dump(coreReward) | ||
| 536 | rewardToNtyFunc(notify, coreReward) | 534 | rewardToNtyFunc(notify, coreReward) |
| 537 | 535 | ||
| 538 | local lastReward = self:getLast(record, now) | 536 | local lastReward = self:getLast(record, now) |
| 539 | - dump(lastReward) | ||
| 540 | rewardToNtyFunc(notify, lastReward) | 537 | rewardToNtyFunc(notify, lastReward) |
| 541 | 538 | ||
| 542 | local jokerReward = self:getJoker(record, now) | 539 | local jokerReward = self:getJoker(record, now) |
| 543 | - dump(jokerReward) | ||
| 544 | rewardToNtyFunc(notify, jokerReward) | 540 | rewardToNtyFunc(notify, jokerReward) |
| 545 | 541 | ||
| 546 | local kingReward = self:getKing(record, now) | 542 | local kingReward = self:getKing(record, now) |
| 547 | - dump(kingReward) | ||
| 548 | rewardToNtyFunc(notify, kingReward) | 543 | rewardToNtyFunc(notify, kingReward) |
| 549 | 544 | ||
| 550 | 545 |