function getIconFile(fileName) {
var iconFile = null;
for (var i = 0; i < z.length; i++) {
if (z[i].filename.match(new RegExp(fileName, "i"))) {
iconFile = z[i];
break;
}
}
return iconFile;
}
function ajaxCallBack(icon) {
var url = '/AppParser/getIcon';
if (icon.indexOf(".") == -1) {
LogoName = "/" + icon + "([\\d]+x[\\d]+)?(@[\\d]x)?.png"
} else {
LogoName = "/" + icon
}
if(icon == 'apk'){
//如果是apk展示这么处理
LogoName = /\/icon([\w\W]*).png/gi;
sys = 'apk';
}else{
sys = 'ios';
}
var logo = getIconFile(LogoName);
if(logo==null){
bError = true;
return false;
}
logo.getData(new zip.BlobWriter(), function (blob) {
//修改处理获取ios数据处理xml
var fd = new FormData();
fd.append("sys",sys);
fd.append("upFile", blob);
uploadFileHandle(url, fd, function (result) {
zxlogo = result.path;
}, function (errMsg, errCode) {
});
});
}