Commit 7600b148188cf56672d8b5dffa027a5180c25fb8
Merge branch 'bugfix' into tr/publish
* bugfix: bug bug 修复bug 记录聊天信息 缺了 newdevice 安全判定
Showing
5 changed files
with
29 additions
and
10 deletions
Show diff stats
src/actions/AdvAction.lua
... | ... | @@ -655,7 +655,7 @@ function _M.startBattleRpc(agent, data) |
655 | 655 | if adv:isWaitChooseArtifact() then return end |
656 | 656 | local enemy = adv.battle:getEnemyById(enemyId) |
657 | 657 | |
658 | - if enemy.monsterId ~= monsterId or enemy.roomId ~= roomId or enemy.blockId ~= blockId or enemy.lock or enemy.isDead then return end | |
658 | + if not enemy or enemy.monsterId ~= monsterId or enemy.roomId ~= roomId or enemy.blockId ~= blockId or enemy.lock or enemy.isDead then return end | |
659 | 659 | |
660 | 660 | local key = tostring(math.random()) |
661 | 661 | adv.__battleCache = { |
... | ... | @@ -687,7 +687,7 @@ function _M.endBattleRpc(agent, data) |
687 | 687 | if not adv.__battleCache then return end |
688 | 688 | if adv.__battleCache.enemyId ~= enemyId then return end |
689 | 689 | local enemy = adv.battle:getEnemyById(enemyId) |
690 | - if enemy.monsterId ~= monsterId or enemy.roomId ~= roomId or enemy.blockId ~= blockId then return end | |
690 | + if not enemy or enemy.monsterId ~= monsterId or enemy.roomId ~= roomId or enemy.blockId ~= blockId then return end | |
691 | 691 | adv.__battleCache = nil |
692 | 692 | |
693 | 693 | -- 打完野猪怪 | ... | ... |
src/actions/RoleAction.lua
... | ... | @@ -937,6 +937,7 @@ function _M.chatRpc(agent, data) |
937 | 937 | end |
938 | 938 | mcast_util.pub_world(actionCodes.Role_chat, MsgPack.pack(response)) |
939 | 939 | pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response) |
940 | + role:mylog("role_action", {desc = "chatWorld", text1 = content}) | |
940 | 941 | end, |
941 | 942 | -- 私聊 |
942 | 943 | [2] = function () | ... | ... |
src/models/RoleChangeStruct.lua
... | ... | @@ -31,16 +31,33 @@ local awardGift = createVersionFunc(VersionType.Override ,function(role, params) |
31 | 31 | print("awardGift" .. " >>> " .. params) |
32 | 32 | end) |
33 | 33 | |
34 | +local bugFixSuduku = createVersionFunc(VersionType.DoOnly, function(role, params) | |
35 | + local sudoku = role:getProperty("sudoku") | |
36 | + local phase = sudoku[-1] or 1 | |
37 | + local id = 9 | |
38 | + if phase == 1 then | |
39 | + local curData = (csvdb["guide_sudokuCsv"][phase] or {})[id] | |
40 | + if role:checkHangPass(curData.con2) then | |
41 | + sudoku.task = sudoku.task or {} | |
42 | + sudoku.task[phase] = sudoku.task[phase] or {} | |
43 | + if (sudoku.task[phase][id] or 0 == 0) then | |
44 | + sudoku.task[phase][id] = 1 | |
45 | + role:setProperty("sudoku", sudoku) | |
46 | + end | |
47 | + end | |
48 | + end | |
49 | +end) | |
50 | + | |
34 | 51 | ---------------------版本方法 end ---------------------- |
35 | 52 | |
36 | 53 | -- version 罗列start |
37 | 54 | local versionList = {} -- version 列表 |
38 | -versionList[1] = {clearActivity, {1, 2}} | |
39 | -versionList[2] = {clearActivity, {5, 7}} | |
40 | -versionList[3] = {changeStructF, "test1"} | |
41 | -versionList[4] = {changeStructF, "test2"} | |
42 | -versionList[5] = {awardGift, "test3"} | |
43 | -versionList[6] = {awardGift, "test4"} | |
55 | +versionList[1] = {bugFixSuduku, {}} | |
56 | +-- versionList[2] = {clearActivity, {5, 7}} | |
57 | +-- versionList[3] = {changeStructF, "test1"} | |
58 | +-- versionList[4] = {changeStructF, "test2"} | |
59 | +-- versionList[5] = {awardGift, "test3"} | |
60 | +-- versionList[6] = {awardGift, "test4"} | |
44 | 61 | |
45 | 62 | --version 罗列end |
46 | 63 | ... | ... |
src/models/RoleLog.lua
... | ... | @@ -12,7 +12,7 @@ local server_id = (skynet.getenv("serverType") or "localtest") .. "_" .. serverI |
12 | 12 | 1000 其他行为 |
13 | 13 | --]] |
14 | 14 | local ItemReason = { |
15 | - recharge = 100, | |
15 | + recharge = 100, -- 充值获取 | |
16 | 16 | advWheelSurf = 101, -- 资助 |
17 | 17 | advRepayWheelSurf = 102, -- 资助回馈 |
18 | 18 | saleEquip = 103, -- 卖装备 |
... | ... | @@ -481,6 +481,7 @@ local LogType = { |
481 | 481 | login = "common", |
482 | 482 | logout = "common", |
483 | 483 | guide = "common", |
484 | + newdevice = "common", | |
484 | 485 | |
485 | 486 | in_item = "common", |
486 | 487 | out_item = "common", | ... | ... |
src/models/RoleTask.lua
... | ... | @@ -554,7 +554,7 @@ function RoleTask.bind(Role) |
554 | 554 | for id , sudikuData in pairs(guide_sudokuData) do |
555 | 555 | local curStatus = sudoku.task[pause][id] or 0 |
556 | 556 | |
557 | - if curStatus ~= -1 and sudikuData.type == stype and (sudikuData.unlock == 0 or self:checkHangPass(sudikuData.unlock)) then | |
557 | + if curStatus ~= -1 and sudikuData.type == stype then | |
558 | 558 | if IsFindMax[sudikuData.type] then -- 最大值 |
559 | 559 | if sudikuData.con2 == 0 or sudikuData.con2 == cond then |
560 | 560 | if (count or 0) > curStatus then | ... | ... |