24
This commit is contained in:
+3
-1
@@ -264,7 +264,9 @@ const cacheFile = (url, saveDir,progressCallback) => {
|
||||
ext = "mp4";
|
||||
}
|
||||
let cacheDir = plus.io.convertLocalFileSystemURL(`_doc/{{dir}}/{{key}}.{{ext}}`);
|
||||
cacheDir = cacheDir.replace('apps/'+plus.runtime.appid+'/doc','cache');
|
||||
if(uni.getSystemInfoSync().osName == 'android'){
|
||||
cacheDir = cacheDir.replace('apps/'+plus.runtime.appid+'/doc','cache');
|
||||
}
|
||||
const cacheFilePath = cacheDir.replace('{{dir}}',saveDir)
|
||||
.replace('{{key}}',key)
|
||||
.replace('{{ext}}',ext);
|
||||
|
||||
Reference in New Issue
Block a user