diff --git a/Demo/FFmpegApi-Demo/demo1.lua b/Demo/FFmpegApi-Demo/demo1.lua index 4a475f9..281d42f 100644 --- a/Demo/FFmpegApi-Demo/demo1.lua +++ b/Demo/FFmpegApi-Demo/demo1.lua @@ -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