async function downImgForSrc(src){
if(!src)return
let params = {
url: src,
method: "get",
responseType: "blob"
}
try{
let res = await axios(params)
let blob = res.data
fs.writeFileSync("img", blob)
}catch(e){
console.log("down img error", e)
}
}
No error was reported, but the picture I opened was wrong. Is there something wrong with it? Please take a look at