Commit 53ed4acf by 宋毅

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

parents cd89e383 54072566
...@@ -2,6 +2,17 @@ const system = require("../../../system"); ...@@ -2,6 +2,17 @@ const system = require("../../../system");
const crypto = require('crypto'); const crypto = require('crypto');
var settings = require("../../../../config/settings"); var settings = require("../../../../config/settings");
const AppServiceBase = require("../../app.base"); const AppServiceBase = require("../../app.base");
//(文网文状态2020-9-26)
const wangwenStatusDisct = {
601: "PARTNER_SUBMIT_MATERIAL",
602: "CERT_ACCOUNT_REGISTERED",
603: "CERT_MATERIAL_SUBMITTED",
604: "CERT_GXB_ACCEPT",
605: "CERT_GXB_REFUSE",
606: "CERT_GXB_SUCCESS",
607: "CERT_GXB_FAIL"
};
/** /**
* 资质信息提报相关接口(ICP\EDI) * 资质信息提报相关接口(ICP\EDI)
*/ */
...@@ -16,6 +27,7 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -16,6 +27,7 @@ class QcCenterOrderService extends AppServiceBase {
this.utilsPushSve = system.getObject("service.utilsSve.utilsPushSve"); this.utilsPushSve = system.getObject("service.utilsSve.utilsPushSve");
this.utilsTmAliyunSve = system.getObject("service.utilsSve.utilsTmAliyunSve");//测试用 this.utilsTmAliyunSve = system.getObject("service.utilsSve.utilsTmAliyunSve");//测试用
this.opPushQueueUrl = settings.opPushQueueUrl(); this.opPushQueueUrl = settings.opPushQueueUrl();
}; };
//调用center-order //调用center-order
async reqCenterOrderApi(pobj, reqUrl) { async reqCenterOrderApi(pobj, reqUrl) {
...@@ -225,13 +237,15 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -225,13 +237,15 @@ class QcCenterOrderService extends AppServiceBase {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard"); var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) { if (res && res.status == 0 && res.data) {
//推送数据至阿里 //推送数据至阿里
var resStatus = res.data.ApplicationStatus;
var pushObj = { var pushObj = {
BizId: res.data.solutionNo, BizId: pobj.actionBody.channelNeedNo,
BizType: res.data.channelTpye, BizType: pobj.actionBody.channelTpye,
OperateType: res.data.ApplicationStatus OperateType: wangwenStatusDisct[resStatus]
}; };
//推送状态变更 //推送状态变更
this.aliclient.reqbyget({ action: "OperateProduceForPartner", reqbody: pushObj, apiVersion: "2020-03-06" }); var r = await this.aliclient.reqbyget({ action: "OperateProduceForPartner", reqbody: pushObj, apiVersion: "2020-03-06" });
console.log('ttttssss',r)
return system.getResultSuccess(); return system.getResultSuccess();
} }
return res; return res;
...@@ -242,7 +256,6 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -242,7 +256,6 @@ class QcCenterOrderService extends AppServiceBase {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard"); var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) { if (res && res.status == 0 && res.data) {
console.log('datadatadata',res.data)
//推送数据至阿里 //推送数据至阿里
var pushObj = { var pushObj = {
intentionBizId: res.data.needinfo.channelNeedNo, intentionBizId: res.data.needinfo.channelNeedNo,
......
...@@ -5112,6 +5112,7 @@ ...@@ -5112,6 +5112,7 @@
"actionBody":{ "actionBody":{
"channel_user_id":"19219084323984", "channel_user_id":"19219084323984",
"type":"contact", "type":"contact",
"contact_name":""
} }
} }
...@@ -5121,9 +5122,78 @@ ...@@ -5121,9 +5122,78 @@
``` javascript ``` javascript
{ {
"status": 0, "status": 0,
"msg": "success", "msg": "操作成功",
"data": null, "data": [
"requestId": "2a3eada5bd6a4e30807bbb2af8c0b4a8" {
"id": 18,
"channel_user_id": "5e38f8ef56badb0009165fd1",
"contact_name": "张三",
"contacts_content": {
"fax": "",
"tel": "010-11111",
"email": "saa@gongsibao.com",
"mobile": "15010929368",
"contacts": "张三"
},
"type": "applicant"
},
{
"id": 19,
"channel_user_id": "5e38f8ef56badb0009165fd1",
"contact_name": "张三ggg",
"contacts_content": {
"fax": "",
"tel": "010-11111",
"email": "saa@gongsibao.com",
"mobile": "15010929368",
"contacts": "张三ggg"
},
"type": "applicant"
},
{
"id": 20,
"channel_user_id": "5e38f8ef56badb0009165fd1",
"contact_name": "张三ggg4",
"contacts_content": {
"fax": "",
"tel": "010-11111",
"email": "saa@gongsibao.com",
"mobile": "15010929368",
"contacts": "张三ggg4"
},
"type": "applicant"
},
{
"id": 40,
"channel_user_id": "5e38f8ef56badb0009165fd1",
"contact_name": "李啥啊",
"contacts_content": {
"code": "91310110398635929J",
"name": "李啥啊",
"zipCode": "100000",
"applyAddr": "上海市杨浦区国定路346号三楼0624室003",
"customerType": "person",
"identityCardNo": "140311111111111111"
},
"type": "applicant"
},
{
"id": 50,
"channel_user_id": "5e38f8ef56badb0009165fd1",
"contact_name": "起个名字吧",
"contacts_content": {
"code": "91310110398635929J",
"name": "起个名字吧",
"zipCode": "100000",
"applyAddr": "上海市杨浦区国定路346号三楼0624室003",
"customerType": "person",
"identityCardNo": "13013399999999999"
},
"type": "applicant"
}
],
"bizmsg": "empty",
"requestId": "9770a5c5a6da4305b8fc83e296716cf5"
} }
``` ```
......
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