1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-04-20 02:26:45 +02:00
This commit is contained in:
lxsang 2019-05-07 14:35:18 +02:00
commit b0f3f2f6f7

View File

@ -125,7 +125,8 @@ function SystemController:apigateway(...)
echo(e) echo(e)
end end
elseif data.path then elseif data.path then
r, e = loadfile(data.path) local ospath = require("vfs").ospath(data.path)
r, e = loadfile(ospath)
if r then if r then
local status, result = pcall(r, data.parameters) local status, result = pcall(r, data.parameters)
if (status) then if (status) then