fix require path
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
--# https://github.com/SkyLothar/lua-resty-jwt
|
--# https://github.com/SkyLothar/lua-resty-jwt
|
||||||
--$ opm get SkyLothar/lua-resty-jwt
|
--$ opm get SkyLothar/lua-resty-jwt
|
||||||
--local jwt = require "resty.jwt"
|
--local jwt = require "resty.jwt"
|
||||||
|
|
||||||
local function cleanupString(str, remove)
|
local function cleanupString(str, remove)
|
||||||
local lcSubStrTab = {}
|
local lcSubStrTab = {}
|
||||||
while true do
|
while true do
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
-- 指定模块引用目录,否则无法加载同目录下的其他文件
|
-- 指定模块引用目录,否则无法加载同目录下的其他文件
|
||||||
--package.path = package.path .. ';/usr/local/opt/openresty/nginx/scripts/?.lua';
|
--package.path = package.path .. ';/usr/local/opt/openresty/nginx/scripts/?.lua';
|
||||||
package.path = package.path .. ';<SCRIPT_PATH>/?.lua';
|
|
||||||
|
|
||||||
local _M = {}
|
local _M = {}
|
||||||
|
|
||||||
function _M.upyun_download(httpc, cjson, Upt, pl, uri)
|
function _M.upyun_download(httpc, cjson, Upt, pl, uri)
|
||||||
|
|||||||
@@ -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
|
-- filename eg. /file_upload/xxxx-xxxx-xxxx-xxxx.mp3
|
||||||
local function calc_token(filename)
|
local function calc_token(filename)
|
||||||
|
|||||||
Reference in New Issue
Block a user