Commit fb74f44f authored by 陆正友's avatar 陆正友

Merge remote-tracking branch 'origin/remote_dev' into remote_dev

parents 72ed1b9f afb79776
...@@ -80,11 +80,13 @@ ...@@ -80,11 +80,13 @@
var data = con_num_map.getChildren(); var data = con_num_map.getChildren();
var v_con_id = data[0].contract_id; var v_con_id = data[0].contract_id;
for (var j = 0; j < docs_list.length; j++) { for (var j = 0; j < docs_list.length; j++) {
var file_size=get_file_length(docs_list[j].fileUrl.replace('/mnt','Z:'));
con_ele_file_dl_bm.update({ con_ele_file_dl_bm.update({
contract_id: v_con_id, contract_id: v_con_id,
file_name: docs_list[j].fileName, file_name: docs_list[j].fileName,
file_url: docs_list[j].fileUrl.replace('/mnt','Z:'), file_url: docs_list[j].fileUrl.replace('/mnt','Z:'),
file_size:docs_list[j].fileSize //file_size:docs_list[j].fileSize
file_size:file_size
}) })
} }
con_ele_file_dl_bm.execute({ con_ele_file_dl_bm.execute({
...@@ -113,6 +115,17 @@ ...@@ -113,6 +115,17 @@
$ctx.parameter.json = JSON.stringify(result); $ctx.parameter.json = JSON.stringify(result);
} }
//获取文件长度
function get_file_length(path){
var file=new File(String(path));
if (file.exists() && file.isFile()){
length=file.length();
return length;
} else{
return 0;
}
}
if ($ctx.parameter.return_status != 'E' && $ctx.parameter.return_status != 'TIMEOUT') { if ($ctx.parameter.return_status != 'E' && $ctx.parameter.return_status != 'TIMEOUT') {
ele_file_download(); ele_file_download();
} }
......
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