separate image combine logic

This commit is contained in:
2022-03-08 21:59:25 +08:00
parent 67ce137e3f
commit e3cdd92cb3
6 changed files with 59 additions and 12 deletions
+9
View File
@@ -0,0 +1,9 @@
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
local upyun_upload = require("upyun_upload")
local file_to_upload = string.match(ngx.var.request_uri, ".*/(.*)")
local file_dir = ngx.var.tmp_file_dir
local fullpath = file_dir .. "/" .. file_to_upload .. ".jpeg";
upyun_upload.upload(fullpath)