Commit 00598e96 by 王昆

gsb

parent c7604fb6
......@@ -106,10 +106,10 @@ class InvoiceService extends ServiceBase {
};
this.invoiceConfig = {
498757: {
498767: {
uploadPeriod: "201910",
companyId: "102",
customerId: "498757",
customerId: "498767",
userId: 43,
},
498758: {
......@@ -604,12 +604,15 @@ class InvoiceService extends ServiceBase {
});
console.log(invoiceApply, "00000000000000000000000000000000000000000000000000000000000");
let params = this.invoiceConfig[invoiceApply.merchantId];
let invoice = invoiceApply.data.invoice || {};
let params = this.invoiceConfig[invoice.merchantId];
if (!params) {
return;
}
params.file = [
invoice.invoiceImg,
]
];
let apiurl = "https://nga-api.gongsibao.com/nga-sass//billInfo/uploadFileForAliyun";
console.log(apiurl, params);
let rs = await this.restClient.execPost(params, apiurl);
......
......@@ -181,16 +181,16 @@ class System {
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
// order: domain + ":3103" + path,
order: "http://127.0.0.1:3103" + path,
order: domain + ":3103" + path,
// order: "http://127.0.0.1:3103" + path,
// 发票服务
invoice: domain + ":3105" + path,
// invoice: "http://127.0.0.1:3105" + path,
// 用户中心
// uc: domain + ":3106" + path ,
uc: "http://127.0.0.1:3106" + path,
uc: domain + ":3106" + path ,
// uc: "http://127.0.0.1:3106" + path,
}
} else {
var odomain = "http://123.57.217.203"
......
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