reorg modules

This commit is contained in:
moicen
2022-06-28 22:47:38 +08:00
committed by 木逸辰
parent c892e8fb41
commit f06c818f4a
16 changed files with 12 additions and 29 deletions
-14
View File
@@ -4,7 +4,6 @@ package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
local uuid = require "resty.jit-uuid"
local cjson = require "cjson"
local upyun_upload = require("upyun_upload")
uuid.seed()
local file_dir = ngx.var.tmp_file_dir
@@ -41,16 +40,3 @@ ngx.log(ngx.INFO, 'CMD -> ', cmd)
io.popen(cmd)
ngx.say(combined_uuid)
-- local result, _, code = os.execute(cmd)
--
-- if result and code == 0 then
-- ngx.log(ngx.INFO, "IMAGE COMBINED -> ", combined)
--
-- ngx.log(ngx.INFO, "Upload combined image " .. combined .. " to upyun .")
--
-- upyun_upload.upload(combined, nil)
-- else
-- ngx.status = 500
-- ngx.log(ngx.ERR, "IMAGE COMBINE *FAILED*")
-- end