Commit 1a4278207ef6a9465d531382f5169c43664a75af
Merge branch 'cn/develop' into cn/publish/release
Showing
3 changed files
with
6 additions
and
5 deletions
Show diff stats
src/actions/HeroAction.lua
@@ -66,7 +66,7 @@ function _M.levelUpRpc( agent, data ) | @@ -66,7 +66,7 @@ function _M.levelUpRpc( agent, data ) | ||
66 | hero_upgrade_scoreget = hero:getProperty("battleV") - oldBattleV, -- 通过英雄升级提升的评分 | 66 | hero_upgrade_scoreget = hero:getProperty("battleV") - oldBattleV, -- 通过英雄升级提升的评分 |
67 | }) | 67 | }) |
68 | 68 | ||
69 | - hero:mylog({desc = "levelUp", int1 = hero:getProperty("level")}) | 69 | + hero:mylog({desc = "levelUp", int1 = hero:getProperty("level"), int2 = hero:getProperty("type")}) |
70 | 70 | ||
71 | role:checkTaskEnter("HeroLevelUp", {level = hero:getProperty("level")}) | 71 | role:checkTaskEnter("HeroLevelUp", {level = hero:getProperty("level")}) |
72 | 72 | ||
@@ -105,7 +105,7 @@ function _M.breakRpc( agent, data ) | @@ -105,7 +105,7 @@ function _M.breakRpc( agent, data ) | ||
105 | hero_break_result = getChangeAttrJson(oldAttr, hero:getTotalAttrs()), -- 英雄突破效果,可记录效果ID,或json格式记录提升效果,{攻击:20,闪避:20,……..} | 105 | hero_break_result = getChangeAttrJson(oldAttr, hero:getTotalAttrs()), -- 英雄突破效果,可记录效果ID,或json格式记录提升效果,{攻击:20,闪避:20,……..} |
106 | hero_break_level = hero:getMaxLevel(), -- 英雄突破后等级上限 | 106 | hero_break_level = hero:getMaxLevel(), -- 英雄突破后等级上限 |
107 | }) | 107 | }) |
108 | - hero:mylog({desc = "break", int1 = hero:getProperty("breakL")}) | 108 | + hero:mylog({desc = "break", int1 = hero:getProperty("breakL"), int2 = hero:getProperty("type")}) |
109 | 109 | ||
110 | SendPacket(actionCodes.Hero_breakRpc, '') | 110 | SendPacket(actionCodes.Hero_breakRpc, '') |
111 | return true | 111 | return true |
src/models/Activity.lua
@@ -1117,10 +1117,11 @@ end | @@ -1117,10 +1117,11 @@ end | ||
1117 | activityFunc[Activity.ActivityType.ActShopGoods] = { | 1117 | activityFunc[Activity.ActivityType.ActShopGoods] = { |
1118 | ["init"] = function(self, actType, isCrossDay, notify, actId) | 1118 | ["init"] = function(self, actType, isCrossDay, notify, actId) |
1119 | end, | 1119 | end, |
1120 | - ["close"] = function(self, actType, notify) | 1120 | + ["close"] = function(self, actType, notify, actId) |
1121 | local rechargeRecord = self.owner.storeData:getProperty("payR") | 1121 | local rechargeRecord = self.owner.storeData:getProperty("payR") |
1122 | for id, cfg in pairs(csvdb["shop_rechargeCsv"]) do | 1122 | for id, cfg in pairs(csvdb["shop_rechargeCsv"]) do |
1123 | - if cfg.shop == 3 and cfg.type == ShopPackType.ActShopPack then | 1123 | + --if cfg.shop == 3 and cfg.type == ShopPackType.ActShopPack then |
1124 | + if cfg.activity_id == actId then | ||
1124 | rechargeRecord[id] = nil | 1125 | rechargeRecord[id] = nil |
1125 | end | 1126 | end |
1126 | end | 1127 | end |
src/services/dbseed.lua
@@ -268,7 +268,7 @@ local function doUpdateSql() | @@ -268,7 +268,7 @@ local function doUpdateSql() | ||
268 | "ALTER TABLE `Rune` MODIFY COLUMN `refer` bigint;" | 268 | "ALTER TABLE `Rune` MODIFY COLUMN `refer` bigint;" |
269 | }, | 269 | }, |
270 | [3] = { | 270 | [3] = { |
271 | - "ALTER TABLE `Email` MODIFY COLUMN `refer` VARCHAR(2048);" | 271 | + "ALTER TABLE `Email` MODIFY COLUMN `content` VARCHAR(2048);" |
272 | }, | 272 | }, |
273 | } | 273 | } |
274 | -- 更新记录表 | 274 | -- 更新记录表 |