Commit d0778ddd by 陈思聪

feat:百度工商注册新流程

parent 77e88e0a
...@@ -4,6 +4,7 @@ var settings = require("../../../../../config/settings"); ...@@ -4,6 +4,7 @@ var settings = require("../../../../../config/settings");
class BaiduHandler { class BaiduHandler {
constructor() { constructor() {
this.icUrl = settings.icUrl() + "/web/bizchance"; this.icUrl = settings.icUrl() + "/web/bizchance";
this.icpUrl = settings.icpUrl() + "/web/delive";
this.userService = system.getObject("service.auth.userSve"); this.userService = system.getObject("service.auth.userSve");
this.cmpService = system.getObject("service.common.companySve"); this.cmpService = system.getObject("service.common.companySve");
this.msgService = system.getObject("service.msg.msgSve") this.msgService = system.getObject("service.msg.msgSve")
...@@ -220,6 +221,29 @@ class BaiduHandler { ...@@ -220,6 +221,29 @@ class BaiduHandler {
} }
} }
//交付单材料处理
async pushOrderDeliveryMaterial(datajson, channelobj) {
console.log("pushOrderDeliveryMaterial stary -----------------------------------------------------------------------------------------------------", datajson);
try {
console.log("百度推过来的交付单材料数据:" + JSON.stringify(datajson));
let rc = system.getObject("util.execClient");
let obj = datajson.actionBody;
let requrl = this.icpUrl + "/companycaseCtl/receiveSubmitMaterialsFormBaidu";
//渠道名称和渠道编码
obj.channelSource = channelobj.name;
obj.channelNumber = channelobj.code
var rtn = await rc.execPost3({ "d": obj }, requrl);
console.log("pushOrderDeliveryMaterial插入数据成功---------------------------------" + rtn.stdout);
var j = JSON.parse(rtn.stdout);
return j
} catch (error) {
console.log("error-------------------------------------" + error);
return system.getResultError(error);
}
}
//客户状态处理 //客户状态处理
async deliveryNotify(datajson) { async deliveryNotify(datajson) {
......
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