fix: 减少重试次数

This commit is contained in:
ikechan8370 2024-02-21 19:14:23 +08:00
parent 3561f7c99d
commit 4cbca97c56

View file

@ -56,7 +56,7 @@ export default class BingDrawClient {
fetchOptions.agent = proxy(Config.proxy)
}
let success = false
let retry = 5
let retry = 1
let response
while (!success && retry >= 0) {
response = await fetch(url, Object.assign(fetchOptions, { body, redirect: 'manual', method: 'POST', credentials: 'include' }))