mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
fix
This commit is contained in:
parent
b8a7a4d422
commit
7358c813e4
@ -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(timeout, 60_000)
|
||||
if (timeout && typeof timeout == 'number' && timeout > 0) options.timeout = Math.min(timeout, 60_000)
|
||||
|
||||
let request = sendNativeRequest(url, { method, body, form, formData, ...options }, (err, resp) => {
|
||||
if (err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user