mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
fix: 修复攻略
This commit is contained in:
parent
2f83ea81a4
commit
075a6d4fd0
4 changed files with 101 additions and 90 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue