Commit d2d7ea5c19d5bbbdb7e3a3345154de8012bbbe02
1 parent
3216ec40
取消gm指令和充值接口
Showing
2 changed files
with
5 additions
and
0 deletions
Show diff stats
src/actions/GmAction.lua
| @@ -5,6 +5,10 @@ function _M.clientRequest(agent, data) | @@ -5,6 +5,10 @@ function _M.clientRequest(agent, data) | ||
| 5 | local role = agent.role | 5 | local role = agent.role |
| 6 | local action = _M[msg.cmd] | 6 | local action = _M[msg.cmd] |
| 7 | local bin = MsgPack.pack({ cmd = "指令失败" }) | 7 | local bin = MsgPack.pack({ cmd = "指令失败" }) |
| 8 | + if true then | ||
| 9 | + SendPacket(actionCodes.Gm_receiveResponse, bin) | ||
| 10 | + return true | ||
| 11 | + end | ||
| 8 | if not action then | 12 | if not action then |
| 9 | SendPacket(actionCodes.Gm_receiveResponse, bin) | 13 | SendPacket(actionCodes.Gm_receiveResponse, bin) |
| 10 | return true | 14 | return true |
src/actions/StoreAction.lua
| @@ -5,6 +5,7 @@ local httpc = require("http.httpc") | @@ -5,6 +5,7 @@ local httpc = require("http.httpc") | ||
| 5 | 5 | ||
| 6 | -- 入口在正式服关闭 -- mock 充值 | 6 | -- 入口在正式服关闭 -- mock 充值 |
| 7 | function _M.rechargeRpc(agent , data) | 7 | function _M.rechargeRpc(agent , data) |
| 8 | + if true then return end | ||
| 8 | local role = agent.role | 9 | local role = agent.role |
| 9 | local msg = MsgPack.unpack(data) | 10 | local msg = MsgPack.unpack(data) |
| 10 | local id = msg.id | 11 | local id = msg.id |