fix
This commit is contained in:
@@ -5,8 +5,10 @@ function _M.uuid()
|
|||||||
|
|
||||||
local handle = io.popen(uuid_cmd)
|
local handle = io.popen(uuid_cmd)
|
||||||
local result = handle:read("*a")
|
local result = handle:read("*a")
|
||||||
ngx.log(ngx.INFO, "uuid -> ", result)
|
local r2 = string.gsub(result, "%s+", "")
|
||||||
return result
|
local r3 = string.gsub(r2,"\n","")
|
||||||
|
ngx.log(ngx.INFO, "uuid -> ", r3)
|
||||||
|
return r3
|
||||||
end
|
end
|
||||||
|
|
||||||
return _M
|
return _M
|
||||||
Reference in New Issue
Block a user