修复bug

This commit is contained in:
HKXluo 2025-04-13 16:56:26 +08:00
parent 91e97d122b
commit d5122c96a5
No known key found for this signature in database
GPG Key ID: 498DD8DAE5261F38

View File

@ -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