This commit is contained in:
2023-11-06 01:48:22 +08:00
parent 0e00b94069
commit 7bce27337b
+4 -2
View File
@@ -5,8 +5,10 @@ function _M.uuid()
local handle = io.popen(uuid_cmd)
local result = handle:read("*a")
ngx.log(ngx.INFO, "uuid -> ", result)
return result
local r2 = string.gsub(result, "%s+", "")
local r3 = string.gsub(r2,"\n","")
ngx.log(ngx.INFO, "uuid -> ", r3)
return r3
end
return _M