1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-25 17:08:22 +01:00

update base64 handling

This commit is contained in:
DanyLE 2022-08-19 16:40:25 +02:00
parent ce05d67166
commit 6d3ee13d87

View File

@ -132,10 +132,12 @@ function SystemController:apigateway(...)
r, e = loadfile(ospath)
if r then
local status, result = pcall(r, data.parameters)
if (status) then
echo(JSON.encode(result))
else
echo(result)
if result then
if (status) then
echo(JSON.encode(result))
else
echo(result)
end
end
else
echo(e)