尝试解决图片第一次下载失败后无法自动解决图片裂开问题&驱动盘序号错位问题

This commit is contained in:
bietiaop 2024-08-14 20:46:13 +08:00
parent 8304b8bffa
commit 839ca76855
6 changed files with 153 additions and 56 deletions

View file

@ -3,7 +3,7 @@ import { sleep } from '../utils/time.js';
import { rank } from './convert.js';
import { getGachaLog, saveGachaLog } from './db.js';
import { ZZZ_GET_GACHA_LOG_API } from './mysapi/api.js';
import { fetchWithRetry } from '../utils/network.js';
import request from '../utils/request.js';
// 池子代码
export const gacha_type_meta_data = {
@ -121,11 +121,12 @@ export const getZZZGachaLogByAuthkey = async (
endId
);
// 发送请求
const response = await fetchWithRetry(link, {
const response = await request(link, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
},
retry: 3,
});
// 获取数据
const data = await response.json();