fix: 修复攻略

This commit is contained in:
bietiaop 2024-07-27 12:49:16 +08:00
parent 2f83ea81a4
commit 075a6d4fd0
4 changed files with 101 additions and 90 deletions

View file

@ -24,7 +24,7 @@ const ZZZ_SUIT_PATH = path.join(imageResourcesPath, 'suit');
* @param {string} savePath 保存路径
* @returns
*/
const downloadFile = async (url, savePath) => {
export const downloadFile = async (url, savePath) => {
const _download = async (url, savePath, retry = 0) => {
// 重试次数超过 5 次则返回 null
if (retry > 5) {