Commit f58b315e777b9a0ddeea0e459726dd81759e3276
1 parent
88eaae64
停止注册
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
src/actions/RoleAction.lua
| ... | ... | @@ -308,6 +308,13 @@ function _M.createRpc(agent, data) |
| 308 | 308 | SendPacket(actionCodes.Role_createRpc, MsgPack.pack(response)) |
| 309 | 309 | return true |
| 310 | 310 | end |
| 311 | + local stopcreate = tonumber(redisproxy:hget("autoincrement_set", "stopcreate")) | |
| 312 | + if stopcreate and stopcreate > 0 then | |
| 313 | + response.result = "STOP_CREATE" | |
| 314 | + SendPacket(actionCodes.Role_createRpc, MsgPack.pack(response)) | |
| 315 | + return true | |
| 316 | + end | |
| 317 | + | |
| 311 | 318 | |
| 312 | 319 | local roleId = getNextRoleId() |
| 313 | 320 | if not roleId then | ... | ... |