Commit b4dc8e77 by 王昆

dd

parent ad3841e0
const system = require("../../../system"); const system = require("../../../system");
const ServiceBase = require("../../svems.base") const ServiceBase = require("../../svems.base")
const settings = require("../../../../config/settings") const settings = require("../../../../config/settings")
const axios = require("axios");
class SaasinvoiceService extends ServiceBase { class SaasinvoiceService extends ServiceBase {
constructor() { constructor() {
super(); super();
...@@ -137,7 +137,14 @@ class SaasinvoiceService extends ServiceBase { ...@@ -137,7 +137,14 @@ class SaasinvoiceService extends ServiceBase {
"value_added_tax": invoice.value_added_tax || 0, "value_added_tax": invoice.value_added_tax || 0,
"channel_id": this.DEFAULT_CHANNEL_ID "channel_id": this.DEFAULT_CHANNEL_ID
} }
return await this.callms("invoice", "invoiceApply", params);
let url = settings.deliverSysApi().pushInvoiceToDeliver;
let res = await axios({
method: 'post',
url: url,
data: params
});
console.log(res.data);
} }
/** /**
......
...@@ -200,13 +200,13 @@ class System { ...@@ -200,13 +200,13 @@ class System {
order: dev + ":3103" + path, order: dev + ":3103" + path,
// 发票服务 // 发票服务
invoice: dev + ":3105" + path, invoice: local + ":3105" + path,
// 用户服务 // 用户服务
uc: dev + ":3106" + path, uc: dev + ":3106" + path,
// 交易 // 交易
trade: local + ":3107" + path, trade: dev + ":3107" + path,
} }
} else { } else {
return { return {
......
...@@ -90,8 +90,8 @@ var settings = { ...@@ -90,8 +90,8 @@ var settings = {
deliverSysApi: function () { deliverSysApi: function () {
let domain = ""; let domain = "";
if (this.env == "dev") { if (this.env == "dev") {
domain = "http://39.107.234.14:3002"; // domain = "http://39.107.234.14:3002";
// domain = "http://127.0.0.1:3002"; domain = "http://127.0.0.1:3002";
} else { } else {
domain = "https://xggadmin.gongsibao.com"; domain = "https://xggadmin.gongsibao.com";
} }
...@@ -99,7 +99,9 @@ var settings = { ...@@ -99,7 +99,9 @@ var settings = {
// 推送订单s // 推送订单s
orderPushApi: domain + "/web/order/orderCtl/addSourceOrder", orderPushApi: domain + "/web/order/orderCtl/addSourceOrder",
//发票是试算 //发票是试算
calcInvoice: domain + "/web/invoice/invoiceCtl/calcInvoice" calcInvoice: domain + "/web/invoice/invoiceCtl/calcInvoice",
//推送发票申请
pushInvoiceToDeliver: domain + "/web/invoice/invoiceCtl/pushInvoiceToDeliver",
} }
}, },
paasUrl: function () { paasUrl: function () {
......
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