Commit e51a96b0 by 蒋勇

d

parent ea88d44d
...@@ -54,7 +54,7 @@ async readxls(path) { ...@@ -54,7 +54,7 @@ async readxls(path) {
var parserByCode=require("./rptHandler/"+rptCode); var parserByCode=require("./rptHandler/"+rptCode);
var rows=await parserByCode(wb); var rows=await parserByCode(wb);
console.log(JSON.stringify(rows)); console.log(JSON.stringify(rows));
this.apiCallWithAk("http://localhost:3003/api/rpt/rptApi/saveRptHistory",{ this.apiCallWithAk(settings.fkweb(),{
rptid:rptid, rptid:rptid,
batchid:bid, batchid:bid,
rptdate:rptDate, rptdate:rptDate,
......
...@@ -14,6 +14,13 @@ var ENVINPUT={ ...@@ -14,6 +14,13 @@ var ENVINPUT={
var settings = { var settings = {
env:ENVINPUT.APP_ENV, env:ENVINPUT.APP_ENV,
basepath : path.normalize(path.join(__dirname, '../..')), basepath : path.normalize(path.join(__dirname, '../..')),
fkweb:function(){
if(this.env=="dev"){
return "http://localhost:3003/api/rpt/rptApi/saveRptHistory";
}else {
return "http://fktaxctl-service/api/rpt/rptApi/saveRptHistory";
}
},
redis:function(){ redis:function(){
if(this.env=="dev"){ if(this.env=="dev"){
var localsettings=require("./localsettings"); var localsettings=require("./localsettings");
......
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