mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
修复timeout参数导致APP崩溃的问题
This commit is contained in:
parent
aef6c2979a
commit
2a80bec203
@ -426,7 +426,7 @@ globalThis.lx_setup = (key, id, name, description, version, author, homepage, ra
|
|||||||
// // data.content_type = 'multipart/form-data'
|
// // data.content_type = 'multipart/form-data'
|
||||||
// options.json = false
|
// 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) => {
|
let request = sendNativeRequest(url, { method, body, form, formData, ...options }, (err, resp) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user