Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev

This commit is contained in:
chenxi 2023-05-08 11:38:53 +08:00
commit 1a117affae
2 changed files with 29 additions and 16 deletions

View File

@ -31,18 +31,28 @@ Example: clear_item]],
type = "clear_item" type = "clear_item"
}, },
{ {
title = "添加英雄", title = "每日重置",
desc = [[ type:add_hero desc = [[ type:reset_by_day
arg1:id Example: reset_by_day]],
Example: add_hero 1]], type = "reset_by_day"
type = "add_hero"
}, },
{ {
title = "设置通关章节", title = "设置时间",
desc = [[ type:pass_chapter desc = [[ type:time
arg1:id Example: time 2023-3-9 18:10:59]],
Example: pass_chapter 1]], type = "time"
type = "pass_chapter" },
{
title = "重置时间差",
desc = [[ type:time_diff
Example: time_diff 0]],
type = "time_diff"
},
{
title = "调整时间差",
desc = [[ type:add_time_diff
Example: add_time_diff 1000]],
type = "add_time_diff"
}, },
} }

View File

@ -89,12 +89,15 @@ function GMToolUI:sendMsg(gmCommand)
else else
local args = {} local args = {}
args.args = string.split(gmCommand, " ") args.args = string.split(gmCommand, " ")
-- :dealGM(args, function() if args.args[1] == "time" then -- 特殊处理
-- :dataOperate(GConst..DATA_OP_BEHAVIOR.SYNC_DATA, GConst.EMPTY_TABLE, function(msgData) local args1 = {}
-- DataManager:initWithServerData(msgData) args1.args = {}
-- ModuleManager.MaincityManager:firstEnterMainCity() args1.args[1] = args.args[1]
-- end) args1.args[2] = args.args[2] .. " " .. args.args[3]
-- end) ModuleManager.DevToolManager:dealGM(args1)
else
ModuleManager.DevToolManager:dealGM(args)
end
end end
end end