feat(ngx): NOOP IMAGE_FORM_COMPRESS audit after form_upload_to_compress

Made-with: Cursor
This commit is contained in:
2026-04-28 09:52:25 +08:00
parent e053cab89e
commit bb95a39dfa
3 changed files with 100 additions and 45 deletions
+8 -1
View File
@@ -167,10 +167,17 @@ local function read_form_file()
handle:close()
local upyun_upload = require("lib.upyun_upload")
local ts_compress_audit = require("lib.ts_compress_audit")
ngx.log(ngx.INFO, 'UPLOAD COMPRESSED IMAGE -> fullpath -> ', output_file[i])
upyun_upload.upload(output_file[i], nil)
local public_url = upyun_upload.upload_return_url(output_file[i], nil)
if not public_url then
return
end
ts_compress_audit.create(httpc, authHeader, sudoerToken, public_url)
ngx.status = 200
ngx.say(public_url)
end
break