mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
update base64 handling
This commit is contained in:
parent
ce05d67166
commit
6d3ee13d87
@ -132,11 +132,13 @@ function SystemController:apigateway(...)
|
|||||||
r, e = loadfile(ospath)
|
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 result then
|
||||||
if (status) then
|
if (status) then
|
||||||
echo(JSON.encode(result))
|
echo(JSON.encode(result))
|
||||||
else
|
else
|
||||||
echo(result)
|
echo(result)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
echo(e)
|
echo(e)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user