Commit 51cac1d4116de724f8bf78e1f137185d2441d919
Merge branch 'develop' of 120.26.43.151:wasteland/server into develop
Showing
2 changed files
with
10 additions
and
4 deletions
Show diff stats
src/actions/HangAction.lua
| @@ -516,7 +516,10 @@ local function bonusWinReward(role, bonusData, rewardType, count) | @@ -516,7 +516,10 @@ local function bonusWinReward(role, bonusData, rewardType, count) | ||
| 516 | 516 | ||
| 517 | if rewardType == 3 then | 517 | if rewardType == 3 then |
| 518 | local open, actId = role.activity:isOpen("BonusDouble") | 518 | local open, actId = role.activity:isOpen("BonusDouble") |
| 519 | - local actData = csvdb["activity_ctrlCsv"][actId] | 519 | + local actData |
| 520 | + if open then | ||
| 521 | + actData = csvdb["activity_ctrlCsv"][actId] | ||
| 522 | + end | ||
| 520 | 523 | ||
| 521 | reward = bonusData.reward:toNumMap() | 524 | reward = bonusData.reward:toNumMap() |
| 522 | for itemId, c in pairs(reward) do | 525 | for itemId, c in pairs(reward) do |
| @@ -528,8 +531,10 @@ local function bonusWinReward(role, bonusData, rewardType, count) | @@ -528,8 +531,10 @@ local function bonusWinReward(role, bonusData, rewardType, count) | ||
| 528 | reward[chance[1]] = (reward[chance[1]] or 0) + chance[2] | 531 | reward[chance[1]] = (reward[chance[1]] or 0) + chance[2] |
| 529 | end | 532 | end |
| 530 | end | 533 | end |
| 531 | - for k, v in pairs(reward) do | ||
| 532 | - reward[k] = v * (actData.condition > 1 and actData.condition or 1) | 534 | + if open and actData then |
| 535 | + for k, v in pairs(reward) do | ||
| 536 | + reward[k] = v * (actData.condition > 1 and actData.condition or 1) | ||
| 537 | + end | ||
| 533 | end | 538 | end |
| 534 | end | 539 | end |
| 535 | 540 | ||
| @@ -604,7 +609,7 @@ function _M.endBonusBattleRpc(agent, data) | @@ -604,7 +609,7 @@ function _M.endBonusBattleRpc(agent, data) | ||
| 604 | end | 609 | end |
| 605 | local bonusData = csvdb["bonus_battleCsv"][id] | 610 | local bonusData = csvdb["bonus_battleCsv"][id] |
| 606 | 611 | ||
| 607 | - local reward, change | 612 | + local reward, change = {} |
| 608 | 613 | ||
| 609 | local bonusStar = role:getProperty("bonusStar") | 614 | local bonusStar = role:getProperty("bonusStar") |
| 610 | local oldStar = bonusStar[id] or 0 | 615 | local oldStar = bonusStar[id] or 0 |
src/models/RolePlugin.lua
| @@ -1608,6 +1608,7 @@ function RolePlugin.bind(Role) | @@ -1608,6 +1608,7 @@ function RolePlugin.bind(Role) | ||
| 1608 | key = orderKey, | 1608 | key = orderKey, |
| 1609 | order = partnerOrderId, | 1609 | order = partnerOrderId, |
| 1610 | rechargeId = rechargeId, | 1610 | rechargeId = rechargeId, |
| 1611 | + createTime = skynet.timex(), | ||
| 1611 | }) | 1612 | }) |
| 1612 | order:create() | 1613 | order:create() |
| 1613 | -- 正在进行中的订单 缓存 | 1614 | -- 正在进行中的订单 缓存 |