mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
尝试解决图片第一次下载失败后无法自动解决图片裂开问题&驱动盘序号错位问题
This commit is contained in:
parent
8304b8bffa
commit
839ca76855
6 changed files with 153 additions and 56 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue