修复timeout参数导致APP崩溃的问题

This commit is contained in:
lyswhut 2023-11-30 19:13:49 +08:00
parent aef6c2979a
commit 2a80bec203

View File

@ -426,7 +426,7 @@ globalThis.lx_setup = (key, id, name, description, version, author, homepage, ra
// // data.content_type = 'multipart/form-data'
// options.json = false
// }
if (timeout && typeof timeout == 'number') options.timeout = Math.min(options.timeout, 60_000)
if (timeout && typeof timeout == 'number') options.timeout = Math.min(timeout, 60_000)
let request = sendNativeRequest(url, { method, body, form, formData, ...options }, (err, resp) => {
if (err) {