|
楼主 |
发表于 2019-8-6 10:45:01
|
显示全部楼层
本帖最后由 Bex5wenti 于 2019-8-6 11:48 编辑
他会给我一个错误码
Error in Success callbackId: FileTransfer534519513 : TypeError: Cannot read property 'open' of undefined
TypeError: Cannot read property 'open' of undefined
fileTransfer.download(
"https://xxx.com/x5/UI2/yz/app-"+version+".apk",
cordova.file.cacheDirectory + "app-"+version+".apk",
function (entry) {
var open = cordova.plugins.disusered.open;
open(entry.toURL(), function(){}, function error(code){justep.Util.hint(code);});
},
function (error) {
console.log("download error source " + error.source);
console.log("download error target " + error.target);
console.log("upload error code" + error.code);
},
null, // or, pass false
{
//headers: {
// "Authorization": "Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=="
//}
}
);
|
|