update
Browse files
app.lua
CHANGED
|
@@ -24,7 +24,8 @@ pass_url = pass_url:gsub("https/", "https://")
|
|
| 24 |
ngx.say("pass_url: ", pass_url)
|
| 25 |
|
| 26 |
-- 根据版本号加载不同的 Lua 文件
|
| 27 |
-
local lua_path = "app/" .. api_version .. "/app.lua"
|
|
|
|
| 28 |
local status, err = pcall(require, lua_path)
|
| 29 |
if not status then
|
| 30 |
ngx.log(ngx.ERR, "failed to load lua file: ", lua_path, ", error: ", err)
|
|
|
|
| 24 |
ngx.say("pass_url: ", pass_url)
|
| 25 |
|
| 26 |
-- 根据版本号加载不同的 Lua 文件
|
| 27 |
+
local lua_path = "./app/" .. api_version .. "/app.lua"
|
| 28 |
+
ngx.say("lua_path: ", lua_path)
|
| 29 |
local status, err = pcall(require, lua_path)
|
| 30 |
if not status then
|
| 31 |
ngx.log(ngx.ERR, "failed to load lua file: ", lua_path, ", error: ", err)
|