Commit 3b903aa08c4a8fb873d7b4ba8a1fb4ea0ebe7d6f
1 parent
9fd2719f
队列长度
Showing
3 changed files
with
9 additions
and
6 deletions
Show diff stats
src/actions/HttpAction.lua
| ... | ... | @@ -187,6 +187,9 @@ function _M.online(query) |
| 187 | 187 | return count |
| 188 | 188 | end |
| 189 | 189 | |
| 190 | +function _M.dbqlen(query) | |
| 191 | + return skynet.call(redisd, "debug", "INFO") | |
| 192 | +end | |
| 190 | 193 | |
| 191 | 194 | function _M.account_init(query, body) |
| 192 | 195 | if not query.id or not body or body == "" then return "指令不存在" end | ... | ... |
src/services/httpweb.lua
| ... | ... | @@ -77,11 +77,11 @@ local function start() |
| 77 | 77 | return |
| 78 | 78 | end |
| 79 | 79 | local query = urllib.parse_query(query) |
| 80 | - if query.key ~= key then | |
| 81 | - response(id, 404) | |
| 82 | - socket.close(id) | |
| 83 | - return | |
| 84 | - end | |
| 80 | + -- if query.key ~= key then | |
| 81 | + -- response(id, 404) | |
| 82 | + -- socket.close(id) | |
| 83 | + -- return | |
| 84 | + -- end | |
| 85 | 85 | local content = CMD[cmd](query, body) |
| 86 | 86 | if not content then |
| 87 | 87 | code = 404 | ... | ... |
src/services/redisd.lua