Commit 2bc45de5 by 蒋勇

d

parent a55c9d1d
...@@ -64,21 +64,20 @@ async readxls(path) { ...@@ -64,21 +64,20 @@ async readxls(path) {
} }
var parserByCode=require("./rptHandler/"+parsefunc); var parserByCode=require("./rptHandler/"+parsefunc);
var rows=await parserByCode(wb); var rows=await parserByCode(wb);
console.log(JSON.stringify(rows));
this.apiCallWithAk(settings.fkweb(),{ this.apiCallWithAk(settings.fkweb(),{
rptid:rptid, rptid:rptid,
batchid:bid, batchid:bid,
rptdate:rptDate, rptdate:rptDate,
rptcode:rptCode, rptcode:rptCode,
hisdata:rows 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(); 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