修复bug
This commit is contained in:
parent
91e97d122b
commit
d5122c96a5
@ -23,9 +23,9 @@ local function Get_dfpwm_url(INPUT_URL,API_URL)
|
||||
if not response then error("HTTP Request Failure: "..(err or "Unknown error"))
|
||||
else
|
||||
-- 读取响应 / Read response
|
||||
local responseData = textutils.unserializeJSON(res.readAll())
|
||||
local responseData = textutils.unserializeJSON(response.readAll())
|
||||
response.close()
|
||||
|
||||
|
||||
--返回下载链接 / Return download URL
|
||||
if responseData.status ~= "success" then error("Conversion failed:"..(responseData.error or "Unknown error"))
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user