下载文件到固定目录
Example
import am035 from '@dfeidao/fd-am000035'
export default async function a001(fd: IFeidaoAiMobile) {
/**
* ios路径: /var/mobile/Containers/Data/Application/应用ID/Library
* android路径: /storage/emulated/0/Android/data/应用包名/files
*/
const res = await am035('http://dfeidao.com/fsweb/getfile?id=xxx.jpg');
// 或者,限定30s如果还下载不完就超时
const res = await am035('http://dfeidao.com/fsweb/getfile?id=xxx.jpg', 30000);
}