diff --git a/src/actions/GmAction.lua b/src/actions/GmAction.lua index 6b48657..8acbeb2 100644 --- a/src/actions/GmAction.lua +++ b/src/actions/GmAction.lua @@ -543,4 +543,21 @@ function _M.ayncPurchase(role, params) return role:handlePurchase(params) or "" end +function _M.cz(role, pms) + local id = tonum(pms.pm1) + local csvData = csvdb["shop_rechargeCsv"][id] + if not csvData then + return "充值id错误, 查看shop_recharge.csv" + end + role:recharge({ + id = id, + transactionId = "GM", + order = "GM", + pay_time = skynet.timex(), + }) + role:mylog("gm_action", {desc = "recharge", int1 = id, key1 = pms.sender}) + return "指令成功" +end + + return _M \ No newline at end of file -- libgit2 0.21.2