add chek file and upload combined image verify

This commit is contained in:
XiaoLi
2022-08-31 23:34:54 +08:00
committed by 阿男
parent 3a724b822d
commit 2f0a22528c
4 changed files with 32 additions and 12 deletions
+10
View File
@@ -1,4 +1,14 @@
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
local http = require "resty.http"
local verify = require('lib.jwt_verify')
local httpc = http:new()
local authHeader = ngx.req.get_headers().Authorization
local sudoerToken = ngx.req.get_headers().HtySudoerToken
verify(httpc, authHeader, sudoerToken)
ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> start')
local upyun_upload = require("lib.upyun_upload")
ngx.log(ngx.INFO, 'UPLOAD COMBINED IMAGE -> upyun_upload loaded')