Commit 91cd785d by 庄冰

baiduRC

parent 4c9bf6ab
...@@ -267,7 +267,6 @@ class Consultation extends APIBase { ...@@ -267,7 +267,6 @@ class Consultation extends APIBase {
pobj.area = "海南"; pobj.area = "海南";
break; break;
default: default:
pobj.area = "";
break; break;
} }
} }
......
...@@ -172,7 +172,6 @@ class Order extends APIBase { ...@@ -172,7 +172,6 @@ class Order extends APIBase {
pobj.area = "34"; pobj.area = "34";
break; break;
default: default:
pobj.area = "";
break; break;
} }
} }
......
...@@ -629,6 +629,12 @@ class CenterorderService extends AppServiceBase { ...@@ -629,6 +629,12 @@ class CenterorderService extends AppServiceBase {
} else if (pobj.actionBody.channelItemCode == '7') { } else if (pobj.actionBody.channelItemCode == '7') {
pobj.actionBody.regType = "baidu.edi"; 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 = { var fqobj = {
actionBody: { actionBody: {
area: pobj.actionBody.province, area: pobj.actionBody.province,
......
...@@ -1322,9 +1322,9 @@ class UtilsNeedService extends AppServiceBase { ...@@ -1322,9 +1322,9 @@ class UtilsNeedService extends AppServiceBase {
* @param {*} actionBody * @param {*} actionBody
*/ */
async submitNeed2(pobj, actionBody) { async submitNeed2(pobj, actionBody) {
if (actionBody.type == "esp.wangwen" || actionBody.type == "esp.food") { // if (actionBody.type == "esp.wangwen" || actionBody.type == "esp.food") {
actionBody.area = this.wangwenAreaChange(actionBody.area) // actionBody.area = this.wangwenAreaChange(actionBody.area)
} // }
if (!actionBody.intentionBizId) { if (!actionBody.intentionBizId) {
return system.getResult(null, "actionBody.intentionBizId can not be empty,100380"); return system.getResult(null, "actionBody.intentionBizId can not be empty,100380");
} }
...@@ -1348,8 +1348,10 @@ class UtilsNeedService extends AppServiceBase { ...@@ -1348,8 +1348,10 @@ class UtilsNeedService extends AppServiceBase {
pobj.actionBody.type = "baidu.icp"; pobj.actionBody.type = "baidu.icp";
} else if (pobj.actionBody.channel_type_code == 7) { } else if (pobj.actionBody.channel_type_code == 7) {
pobj.actionBody.type = "baidu.edi"; pobj.actionBody.type = "baidu.edi";
} else if (pobj.actionBody.channel_type_code == "tmjy") { } else if (pobj.actionBody.channel_type_code == "NC") {
pobj.actionBody.type = "baidu.tmd"; 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) { if (pobj.actionBody.description && pobj.actionBody.description.indexOf("备#") < 0) {
pobj.actionBody.level = "A"; pobj.actionBody.level = "A";
......
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