fix require path

This commit is contained in:
2023-05-08 00:58:30 +08:00
parent 02c181493b
commit d68f3a714e
3 changed files with 2 additions and 4 deletions
-1
View File
@@ -2,7 +2,6 @@
--# https://github.com/SkyLothar/lua-resty-jwt
--$ opm get SkyLothar/lua-resty-jwt
--local jwt = require "resty.jwt"
local function cleanupString(str, remove)
local lcSubStrTab = {}
while true do
-2
View File
@@ -1,7 +1,5 @@
-- 指定模块引用目录,否则无法加载同目录下的其他文件
--package.path = package.path .. ';/usr/local/opt/openresty/nginx/scripts/?.lua';
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
local _M = {}
function _M.upyun_download(httpc, cjson, Upt, pl, uri)
+2 -1
View File
@@ -1,4 +1,5 @@
local strip_path = require("strip_path")
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
local strip_path = require("lib.strip_path")
-- filename eg. /file_upload/xxxx-xxxx-xxxx-xxxx.mp3
local function calc_token(filename)