更新 play.lua

This commit is contained in:
2026-01-26 18:34:53 +08:00
parent 8a6b377597
commit 3ccf4cf5fa

View File

@@ -186,7 +186,8 @@ for startIdx = 1, totalFrames, BATCH_SIZE do
local resp,err = http.post( local resp,err = http.post(
server_url .. "/api/framepack", server_url .. "/api/framepack",
textutils.serializeJSON({ urls = urls }), textutils.serializeJSON({ urls = urls }),
{ ["Content-Type"] = "application/json" } { ["Content-Type"] = "application/json" },
true
) )
@@ -316,7 +317,8 @@ local function cacheAhead()
url = server_url .. "/api/framepack?"..batch.urls[1], url = server_url .. "/api/framepack?"..batch.urls[1],
headers = { ["Content-Type"] = "application/json" }, headers = { ["Content-Type"] = "application/json" },
body = textutils.serializeJSON({ urls = batch.urls } ), body = textutils.serializeJSON({ urls = batch.urls } ),
timeout = 3 timeout = 3,
binary = true
} }
) )