use system uuid

This commit is contained in:
2023-11-06 01:22:29 +08:00
parent 0642bedbf3
commit 8708d0e2f7
6 changed files with 23 additions and 8 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
-- Requires
local uuid = require "resty.jit-uuid"
local uuid = require "lib.my_uuid"
local cjson = require "cjson"
local pl = require "pl.pretty"
local http = require "resty.http"
@@ -57,7 +57,7 @@ if image_origin == "WX" then
end
-- Prepare combined file name and path
local combined_uuid = uuid.generate_v4()
local combined_uuid = uuid.uuid()
local output_filename = combined_uuid .. ".jpeg";
local output_filepath = file_dir .. "/" .. output_filename