Commit ec442b5d authored by chenzhuo's avatar chenzhuo

获取URL修复

parent 7808b8be
......@@ -113,7 +113,7 @@
var con_ele_unsigned_file_data = con_ele_unsigned_file_map.getChildren();
for (var n = 0; n < con_ele_unsigned_file_data.length; n++){
conFileList.push({
"fileUrl": con_ele_unsigned_file_data[n].file_path.replace('X:','/mnt'),
"fileUrl": con_ele_unsigned_file_data[n].file_path.replace('X:','/mnt').replace('x:','/mnt'),
"fileName": con_ele_unsigned_file_data[n].file_name,
"fileSize": con_ele_unsigned_file_data[n].file_size
});
......@@ -203,7 +203,7 @@
for (var h = 0; h < ele_signer_file_data.length; h++){
signerFileList.push({
"fileName":ele_signer_file_data[h].file_name,
"fileUrl":ele_signer_file_data[h].file_path.replace('X:','/mnt'),
"fileUrl":ele_signer_file_data[h].file_path.replace('X:','/mnt').replace('x:','/mnt'),
"fileSize":ele_signer_file_data[h].file_size
});
}
......
......@@ -290,7 +290,7 @@
var con_ele_unsigned_file_data = con_ele_unsigned_file_map.getChildren();
for (var n = 0; n < con_ele_unsigned_file_data.length; n++) {
conFileList.push({
"fileUrl": con_ele_unsigned_file_data[n].file_path.replace('X:','/mnt'),
"fileUrl": con_ele_unsigned_file_data[n].file_path.replace('X:','/mnt').replace('x:','/mnt'),
"fileName": con_ele_unsigned_file_data[n].file_name,
"fileSize": con_ele_unsigned_file_data[n].file_size
});
......@@ -314,7 +314,7 @@
for (var h = 0; h < ele_signer_file_data.length; h++) {
signerFileList.push({
"fileName": ele_signer_file_data[h].file_name,
"fileUrl": ele_signer_file_data[h].file_path.replace('X:','/mnt'),
"fileUrl": ele_signer_file_data[h].file_path.replace('X:','/mnt').replace('x:','/mnt'),
"fileSize": ele_signer_file_data[h].file_size
});
}
......
......@@ -243,7 +243,7 @@
var con_ele_unsigned_file_data = con_ele_unsigned_file_map.getChildren();
for (var n = 0; n < con_ele_unsigned_file_data.length; n++){
conFileList.push({
"fileUrl": con_ele_unsigned_file_data[n].file_path.replace('X:','/mnt'),
"fileUrl": con_ele_unsigned_file_data[n].file_path.replace('X:','/mnt').replace('x:','/mnt'),
"fileName": con_ele_unsigned_file_data[n].file_name,
"fileSize": con_ele_unsigned_file_data[n].file_size
});
......@@ -267,7 +267,7 @@
for (var h = 0; h < ele_signer_file_data.length; h++){
signerFileList.push({
"fileName":ele_signer_file_data[h].file_name,
"fileUrl":ele_signer_file_data[h].file_path.replace('X:','/mnt'),
"fileUrl":ele_signer_file_data[h].file_path.replace('X:','/mnt').replace('x:','/mnt'),
"fileSize":ele_signer_file_data[h].file_size
});
}
......
......@@ -92,7 +92,7 @@
}
}
zos.close();
file_url = tranfer_file_path.toString().replace('X:','/mnt');
file_url = tranfer_file_path.toString().replace('X:','/mnt').replace('x:','/mnt');
file_name = zip_filename;
file_size = get_file_length(tranfer_file_path);
} else if ($ctx.parameter.type == 'SIN' && $ctx.parameter.atmId) {
......@@ -101,7 +101,7 @@
attachment_id: $ctx.parameter.atmId
});
var result_data = result.getChildren()[0];
file_url = result_data.file_path.replace('X:','/mnt');
file_url = result_data.file_path.replace('X:','/mnt').replace('x:','/mnt');
file_name = result_data.file_name;
file_size = result_data.file_size;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment