Commit 9979471c by zhaoxiqing

gsb

parent e25995a5
...@@ -7,7 +7,7 @@ class EcompanyworkService extends ServiceBase { ...@@ -7,7 +7,7 @@ class EcompanyworkService extends ServiceBase {
constructor() { constructor() {
super(ServiceBase.getDaoName(EcompanyworkService)); super(ServiceBase.getDaoName(EcompanyworkService));
this.ecompanyDao = system.getObject("db.ecompanyDao"); this.ecompanyDao = system.getObject("db.ecompanyDao");
this.callApiUrl = system.callApiUrl(); this.callApiUrl = system.callApiUrl().urls;
} }
async getById(id) { async getById(id) {
var info = await this.dao.model.findOne({where:{id:id}, raw: true}); var info = await this.dao.model.findOne({where:{id:id}, raw: true});
...@@ -45,7 +45,7 @@ class EcompanyworkService extends ServiceBase { ...@@ -45,7 +45,7 @@ class EcompanyworkService extends ServiceBase {
async callApi(url, data) { async callApi(url, data) {
logCtl.info({ logCtl.info({
optitle: "laowubao接口===>工作量确认单info", optitle: "laowubao接口===>工作量确认单info",
op: url+name, op: url,
content: "参数:data=" + data, content: "参数:data=" + data,
clientIp: "" clientIp: ""
}); });
......
...@@ -287,11 +287,11 @@ class System { ...@@ -287,11 +287,11 @@ class System {
if (settings.env == "dev") { if (settings.env == "dev") {
var domain = "http://127.0.0.1"; var domain = "http://127.0.0.1";
return { return {
channel: domain + ":3006" + path, urls: domain + ":3006" + path,
} }
} else { } else {
return { return {
channel: "laowubao-service" + path, urls: "laowubao-service" + path,
} }
} }
} }
......
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