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:
parent
ce05d67166
commit
6d3ee13d87
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user