Commit cb8fd482 by 宋毅

Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel

parents 5435e5b6 62014aae
......@@ -18,6 +18,7 @@ class UtilsNeedService extends AppServiceBase {
this.qcCenterOrderSve = system.getObject("service.common.qcCenterOrderSve");
this.opPushQueueUrl = settings.opPushQueueUrl();
this.utilsAuthSve = system.getObject("service.utilsSve.utilsAuthSve");
this.execClientNew = system.getObject("util.execClientNew");
}
/**
......@@ -38,6 +39,7 @@ class UtilsNeedService extends AppServiceBase {
sobj.actionType = "getProductTypeInfo";
var url = settings.centerAppUrl() + "action/opProduct/springBoard";
var rtn = await this.execClient.execPost(sobj, url);
this.execClientNew.execLogs("utilsNeedSve-submitNeed", pobj, "ali-submitNeed-getProductTypeInfo", rtn.stdout, null);
if (!rtn || !rtn.stdout) {
return system.getResultFail(-5015, "需求类型查询失败");
}
......
......@@ -40,7 +40,7 @@ class UtilsOpNeedService extends AppServiceBase {
pobj.actionBody.channel_type_code = opResult.data.channel_type_code;
pobj.actionBody.channel_type_name = opResult.data.channel_type_name;
}
// 提交需求 暂未做推送
// 提交需求
pobj.actionType = "opSubmitNeed";
var reqUrl = this.centerOrderUrl + "action/opNeed/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
......
......@@ -26,9 +26,10 @@ var settings = {
//记录日志地址
opNewLogUrl() {
if (this.env == 'dev') {
return "http://43.247.184.94:7200/center_channel_req_log/_doc?pretty";
return "http://er.es.gongsibao.com:7200/center_channel_req_log/_doc?pretty";
}
return "http://43.247.184.94:7200/center_channel_req_log/_doc?pretty";
// return "http://43.247.184.94:7200/center_channel_req_log/_doc?pretty";
return "http://er.es.gongsibao.com:7200/center_channel_req_log/_doc?pretty"
},
enameClientUrl: function () {
if (this.env == 'dev') {
......@@ -334,9 +335,9 @@ var settings = {
},
openPlatformAK: function () {
if (this.env == "dev") {
return {"accessKey": "111", "accessSecret": "222"}
return { "accessKey": "111", "accessSecret": "222" }
} else {
return {"accessKey": "202101121716", "accessSecret": "12bb846776874167b5c7e01cd0116c12"}
return { "accessKey": "202101121716", "accessSecret": "12bb846776874167b5c7e01cd0116c12" }
}
},
apiconfig: {
......
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