Commit 60c30b23 by Joneq

增加代码

parent 3f4300d3
Showing with 1 additions and 2 deletions
...@@ -27,13 +27,12 @@ local cjson = require "cjson" ...@@ -27,13 +27,12 @@ local cjson = require "cjson"
-------去除一些不要验证的请求并获取url -------去除一些不要验证的请求并获取url
local urlok,temp_uri = reqhandle.Selfwhiteurl() local urlok,temp_uri = reqhandle.Selfwhiteurl()
if urlok == "ok" then if urlok == "ok" then
red:close()
return return
end end
-------链接redis------------ -------链接redis------------
local red = redis:new() red = redis:new()
red:set_timeout(1000) red:set_timeout(1000)
local ok, err = red:connect(config.redis_host, config.redis_port) local ok, err = red:connect(config.redis_host, config.redis_port)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment