修复utf8编码问题,修改客户端长轮询为60秒

This commit is contained in:
nnwang
2025-12-12 18:57:17 +08:00
parent d862467883
commit c6d9d4f093
2 changed files with 45 additions and 52 deletions

View File

@@ -114,7 +114,7 @@ local function httpPost(path, data)
local jsonData = table_to_json(data)
local url = httpServer .. path
-- 使用长轮询设置超时时间为300秒
-- 使用长轮询
local response,err = http.post({
url = url,
body = jsonData,
@@ -122,7 +122,7 @@ local function httpPost(path, data)
headers = {
["Content-Type"] = "application/json"
},
timeout = 300 -- 300秒超时
timeout = 60
})
if not response then