???

This commit is contained in:
ikun 2024-09-07 16:22:38 +08:00
parent e9511bb28c
commit a88a4541a5
3 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "lx-music-mobile-mod", "name": "lx-music-mobile-mod",
"version": "3.3.6", "version": "3.3.7",
"versionCode": 69, "versionCode": 69,
"private": true, "private": true,
"scripts": { "scripts": {

View File

@ -55,7 +55,7 @@ export const handelDownload = (musicInfo: any, quality: LX.Quality) => {
console.log(url); console.log(url);
const extension = getFileExtension(url); const extension = getFileExtension(url);
const fileName = musicInfo.name; const fileName = musicInfo.name;
const downloadDir = RNFetchBlob.fs.dirs.DownloadDir + "/lxmusicmod"; const downloadDir = RNFetchBlob.fs.dirs.DownloadDir + "/lx.music";
const path = `${downloadDir}/${fileName}.${extension}` const path = `${downloadDir}/${fileName}.${extension}`
const config = { const config = {
fileCache: true, fileCache: true,
@ -84,8 +84,6 @@ export const handelDownload = (musicInfo: any, quality: LX.Quality) => {
}).catch((e) => { }).catch((e) => {
return Promise.reject(e ?? "权限获取失败") return Promise.reject(e ?? "权限获取失败")
}) })
} }
export const handleRemove = (listId: SelectInfo['listId'], musicInfo: SelectInfo['musicInfo'], selectedList: SelectInfo['selectedList'], onCancelSelect: () => void) => { export const handleRemove = (listId: SelectInfo['listId'], musicInfo: SelectInfo['musicInfo'], selectedList: SelectInfo['selectedList'], onCancelSelect: () => void) => {

View File

@ -1,6 +1,7 @@
{ {
"extends": "@react-native/typescript-config/tsconfig.json", /* Recommended React Native TSConfig base */ "extends": "@react-native/typescript-config/tsconfig.json", /* Recommended React Native TSConfig base */
"compilerOptions": { "compilerOptions": {
"jsx": "react",
/* Visit https://aka.ms/tsconfig.json to read more about this file */ /* Visit https://aka.ms/tsconfig.json to read more about this file */
"module": "ESNext", "module": "ESNext",