Commit 2bc45de5 by 蒋勇

d

parent a55c9d1d
......@@ -64,21 +64,20 @@ async readxls(path) {
}
var parserByCode=require("./rptHandler/"+parsefunc);
var rows=await parserByCode(wb);
console.log(JSON.stringify(rows));
this.apiCallWithAk(settings.fkweb(),{
rptid:rptid,
batchid:bid,
rptdate:rptDate,
rptcode:rptCode,
hisdata:rows
}).then(()=>{
fs.unlink(localpath,(err)=>{
(err) => {
if (err) throw err;
console.log('文件已删除');
}
});
});
//
// fs.unlink(localpath,(err)=>{
// (err) => {
// if (err) throw err;
// console.log('文件已删除');
// }
// });
this.parseXls();
}
}
......
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