This commit is contained in:
HKXluo 2025-04-13 15:12:16 +08:00
parent 115fe1033e
commit 01a57db73e
No known key found for this signature in database
GPG Key ID: 498DD8DAE5261F38

View File

@ -29,7 +29,7 @@ local function convertAndPlay()
-- 读取响应 / Read response -- 读取响应 / Read response
local responseBody = response.readAll() local responseBody = response.readAll()
response.close()
-- HTTP状态码检查 / HTTP status check -- HTTP状态码检查 / HTTP status check
local statusCode = response.getResponseCode() local statusCode = response.getResponseCode()
@ -50,6 +50,7 @@ local function convertAndPlay()
printError("\nConversion failed: "..(responseData.error or "no error info")) printError("\nConversion failed: "..(responseData.error or "no error info"))
return return
end end
response.close()
-- ===== 5. 播放音频 / Play audio ===== -- ===== 5. 播放音频 / Play audio =====
print("\nConversion successful! Download URL:") print("\nConversion successful! Download URL:")