Commit 6bdb1878 by 宋毅

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

parents 6fe1cfff 0fc48989
......@@ -266,8 +266,13 @@ class Consultation extends APIBase {
case "HAINAN":
pobj.area = "海南";
break;
case "GUANGZHOU":
pobj.area = "广州";
break;
case "SHENZHEN":
pobj.area = "深圳";
break;
default:
pobj.area = "";
break;
}
}
......
......@@ -172,7 +172,6 @@ class Order extends APIBase {
pobj.area = "34";
break;
default:
pobj.area = "";
break;
}
}
......
......@@ -49,7 +49,9 @@ const cityLetter = {
"内蒙古":"NEIMENGGU",
"西藏":"XIZANG",
"外资":"WAIZI",
"海南":"HAINAN"
"海南":"HAINAN",
"广州":"GUANGZHOU",
"深圳":"SHENZHEN"
}
//baidu pinyinzhuanyong 2020-11-6
......
......@@ -629,6 +629,12 @@ class CenterorderService extends AppServiceBase {
} else if (pobj.actionBody.channelItemCode == '7') {
pobj.actionBody.regType = "baidu.edi";
}
else if (pobj.actionBody.channelItemCode == 'NC') {
pobj.actionBody.regType = "baidu.wangwen";
}
else if (pobj.actionBody.channelItemCode == 'RT') {
pobj.actionBody.regType = "baidu.radiotv";
}
var fqobj = {
actionBody: {
area: pobj.actionBody.province,
......
......@@ -41,7 +41,9 @@ const cityLetter = {
"内蒙古":"NEIMENGGU",
"西藏":"XIZANG",
"外资":"WAIZI",
"海南":"HAINAN"
"海南":"HAINAN",
"广州":"GUANGZHOU",
"深圳":"SHENZHEN"
}
//百度拼音转义 2020-11-11 laolan
......
......@@ -40,7 +40,9 @@ const cityLetter = {
"内蒙古":"NEIMENGGU",
"西藏":"XIZANG",
"外资":"WAIZI",
"海南":"HAINAN"
"海南":"HAINAN",
"广州":"GUANGZHOU",
"深圳":"SHENZHEN"
}
//百度拼音转义 2020-11-11 laolan
......
......@@ -1322,9 +1322,9 @@ class UtilsNeedService extends AppServiceBase {
* @param {*} actionBody
*/
async submitNeed2(pobj, actionBody) {
if (actionBody.type == "esp.wangwen" || actionBody.type == "esp.food") {
actionBody.area = this.wangwenAreaChange(actionBody.area)
}
// if (actionBody.type == "esp.wangwen" || actionBody.type == "esp.food") {
// actionBody.area = this.wangwenAreaChange(actionBody.area)
// }
if (!actionBody.intentionBizId) {
return system.getResult(null, "actionBody.intentionBizId can not be empty,100380");
}
......@@ -1348,8 +1348,10 @@ class UtilsNeedService extends AppServiceBase {
pobj.actionBody.type = "baidu.icp";
} else if (pobj.actionBody.channel_type_code == 7) {
pobj.actionBody.type = "baidu.edi";
} else if (pobj.actionBody.channel_type_code == "tmjy") {
pobj.actionBody.type = "baidu.tmd";
} else if (pobj.actionBody.channel_type_code == "NC") {
pobj.actionBody.type = "baidu.wangwen";
} else if (pobj.actionBody.channel_type_code == "RT") {
pobj.actionBody.type = "baidu.radiotv";
}
if (pobj.actionBody.description && pobj.actionBody.description.indexOf("备#") < 0) {
pobj.actionBody.level = "A";
......
......@@ -6,14 +6,16 @@ class dingClient {
}
//推送峰擎异常提醒
async gatewayPushError(err) {
if (process.env.APP_ENV === "prod") {
let c = `注意提醒:阿里->推送峰擎异常,老板们加油,加油,加油 !!!${JSON.stringify(err)}`
let t = new Date().toLocaleString()
this.execClient.execPost({
"msgtype": "text",
"text": {"content": t + c}
}, this.gatewayurl).catch(alierr=>{
}, this.gatewayurl).catch(alierr => {
console.log(alierr)
});
}
}
}
module.exports = dingClient;
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