2023-06-14 15:43:04 +08:00
|
|
|
const path = require('path')
|
|
|
|
const { getListData } = require(path.join(__dirname,'/getList/qq.js'));
|
2023-06-14 22:02:50 +08:00
|
|
|
const {dow} = require("./utils.js");
|
|
|
|
const { mkdirRecursions } = require('./markdir.js');
|
2023-06-14 15:43:04 +08:00
|
|
|
|
|
|
|
// async function getlist (url) {
|
|
|
|
// let list = await getListData(url)
|
|
|
|
// return list
|
|
|
|
// // console.log('electron收到远端的传参', a);
|
|
|
|
// // callback('config result'); // 回调给远端的请求数据,如 config
|
|
|
|
// // ipcRenderer.send('close', 'args bbb'); // 比如收到请求关闭窗口
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function dowload(info,callback){
|
2023-06-14 22:02:50 +08:00
|
|
|
mkdirRecursions(info.save)
|
|
|
|
console.log("开始",JSON.stringify(info))
|
2023-06-14 15:43:04 +08:00
|
|
|
dow(info,callback)
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
dowload
|
|
|
|
}
|