Commit a9b342f5 by 兰国旗

laolan

parent 8958cc56
...@@ -58,9 +58,6 @@ class QcAPI extends APIBase { ...@@ -58,9 +58,6 @@ class QcAPI extends APIBase {
// --------- 网文 --------- // --------- 网文 ---------
case "ncGetNeedList"://查询需求列表(网文)2020-11-11
opResult = await this.ncSve.ncGetNeedList(pobj);
break;
case "ncSubmitMaterial"://交付材料提交(网文)2020-11-11 case "ncSubmitMaterial"://交付材料提交(网文)2020-11-11
opResult = await this.ncSve.ncSubmitMaterial(pobj); opResult = await this.ncSve.ncSubmitMaterial(pobj);
break; break;
...@@ -70,27 +67,10 @@ class QcAPI extends APIBase { ...@@ -70,27 +67,10 @@ class QcAPI extends APIBase {
case "ncSubmitSolution"://提交方案(网文)2020-11-11 case "ncSubmitSolution"://提交方案(网文)2020-11-11
opResult = await this.ncSve.ncSubmitSolution(pobj); opResult = await this.ncSve.ncSubmitSolution(pobj);
break; break;
case "ncWriteCommunicationRecord"://提交沟通记录(网文)2020-11-11
opResult = await this.ncSve.ncWriteCommunicationRecord(pobj);
break;
case "ncGetCommunicationRecord"://查询沟通记录(网文)2020-11-11
opResult = await this.ncSve.ncGetCommunicationRecord(pobj);
break;
case "ncCloseNeed"://关闭需求(网文)2020-11-11
opResult = await this.ncSve.ncCloseNeed(pobj);
break;
case "ncClosePlan"://关闭方案(网文)2020-11-11
opResult = await this.ncSve.ncClosePlan(pobj);
break;
case "ncCloseOrderDelivery"://关闭交付单(网文)2020-11-11
opResult = await this.ncSve.ncCloseOrderDelivery(pobj);
break;
// --------- 广电 --------- // --------- 广电 ---------
case "rtGetNeedList"://查询需求列表(广电)2020-11-11
opResult = await this.rtSve.rtGetNeedList(pobj);
break;
case "rtSubmitMaterial"://交付材料提交(广电)2020-11-11 case "rtSubmitMaterial"://交付材料提交(广电)2020-11-11
opResult = await this.rtSve.rtSubmitMaterial(pobj); opResult = await this.rtSve.rtSubmitMaterial(pobj);
break; break;
...@@ -100,23 +80,8 @@ class QcAPI extends APIBase { ...@@ -100,23 +80,8 @@ class QcAPI extends APIBase {
case "rtSubmitSolution"://提交方案(广电)2020-11-11 case "rtSubmitSolution"://提交方案(广电)2020-11-11
opResult = await this.rtSve.rtSubmitSolution(pobj); opResult = await this.rtSve.rtSubmitSolution(pobj);
break; break;
case "rtWriteCommunicationRecord"://提交沟通记录(广电)2020-11-11
opResult = await this.rtSve.rtWriteCommunicationRecord(pobj);
break;
case "rtGetCommunicationRecord"://查询沟通记录(广电)2020-11-11
opResult = await this.rtSve.rtGetCommunicationRecord(pobj);
break;
case "rtCloseNeed"://关闭需求(广电)2020-11-11
opResult = await this.rtSve.rtCloseNeed(pobj);
break;
case "rtClosePlan"://关闭方案(广电)2020-11-11
opResult = await this.rtSve.rtClosePlan(pobj);
break;
case "rtCloseOrderDelivery"://关闭交付单(广电)2020-11-11
opResult = await this.rtSve.rtCloseOrderDelivery(pobj);
break;
// --------- 推送icp信息至渠道和作方 zhuangbing-20201116-------- // --------- 推送icp信息至渠道和作方 zhuangbing-20201116--------
case "pushIcpSolution2Channel"://推送ICP方案至渠道(百度) case "pushIcpSolution2Channel"://推送ICP方案至渠道(百度)
opResult = await this.baseOrderSve.pushIcpSolution2Channel(pobj); opResult = await this.baseOrderSve.pushIcpSolution2Channel(pobj);
break; break;
......
...@@ -26,6 +26,12 @@ class QueueNotify extends APIBase { ...@@ -26,6 +26,12 @@ class QueueNotify extends APIBase {
case "pushIcpSolution2Channel"://推送ICP方案至渠道(百度) case "pushIcpSolution2Channel"://推送ICP方案至渠道(百度)
opResult = await this.baseOrderSve.pushIcpSolution2Channel(pobj); opResult = await this.baseOrderSve.pushIcpSolution2Channel(pobj);
break; break;
case "serviceProviderSubmit2Material"://推送资料至渠道(百度)
opResult = await this.baseOrderSve.serviceProviderSubmit2Material(pobj);
break;
case "serviceProvider2Notification"://推送通知状态至渠道(百度)
opResult = await this.baseOrderSve.serviceProvider2Notification(pobj);
break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
...@@ -339,109 +339,395 @@ class BaseCenterOrderService extends AppServiceBase { ...@@ -339,109 +339,395 @@ class BaseCenterOrderService extends AppServiceBase {
return res; return res;
} }
//交付材料提交 //队列推送材料
async serviceProviderSubmitMaterial(pobj) { async serviceProviderSubmit2Material(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard"); console.log("serviceProviderSubmit2Material+++++pobj+++",pobj)
if (res && res.status == 0 && res.data) { var actionBody = pobj.actionBody;
var needsolution = res.data;//方案信息 var appInfo = pobj.appInfo;
var ab = pobj.actionBody; var pushRes = {
if (typeof (ab.material) == "string") { status:-1,msg:"推送失败"
ab.material = JSON.parse(ab.material); };
} if(actionBody){
var material = ab.material; if(actionBody.uapp_id == uappId.ali){
if(res.data.uapp_id == uappId.ali){
//推送数据至阿里 //推送数据至阿里
var BizId = needsolution.channelSolutionNo;//⽅案业务ID
var pushObj = { var pushObj = {
"BizId": BizId, "BizId": actionBody.BizId,
"Domain": material.Domain, "Domain": actionBody.Domain,
"CorporateName": material.CorporateName, "CorporateName": actionBody.CorporateName,
"IncludeForeignInvestment": material.IncludeForeignInvestment, "IncludeForeignInvestment": actionBody.IncludeForeignInvestment,
"PartnerBusinessLicense": material.PartnerBusinessLicense, "PartnerBusinessLicense": actionBody.PartnerBusinessLicense,
"PartnerIdCardList": material.PartnerIdCardList, "PartnerIdCardList": actionBody.PartnerIdCardList,
"PartnerDomainCertificate": material.PartnerDomainCertificate, "PartnerDomainCertificate": actionBody.PartnerDomainCertificate,
"PartnerPreviewOtherList": material.PartnerPreviewOtherList || [], "PartnerPreviewOtherList": actionBody.PartnerPreviewOtherList || [],
"PartnerPlan": material.PartnerPlan || "", "PartnerPlan": actionBody.PartnerPlan || "",
"PartnerForeignInvestment": material.PartnerForeignInvestment || "", "PartnerForeignInvestment": actionBody.PartnerForeignInvestment || "",
"PartnerLaw": material.PartnerLaw || "", "PartnerLaw": actionBody.PartnerLaw || "",
"PartnerStampOtherList": material.PartnerStampOtherList || [], "PartnerStampOtherList": actionBody.PartnerStampOtherList || [],
"PartnerSignOtherList": material.PartnerSignOtherList || [], "PartnerSignOtherList": actionBody.PartnerSignOtherList || [],
"PartnerSignAndStampOtherList": material.PartnerSignAndStampOtherList || [] "PartnerSignAndStampOtherList": actionBody.PartnerSignAndStampOtherList || []
}; };
var self = this; var self = this;
//推送方案材料 //推送方案材料
self.aliclient.reqbyget({ action: "SavePartnerSubmitMaterial", reqbody: pushObj, apiVersion: "2019-05-08" }); var ali = self.aliclient.reqbyget({ action: "SavePartnerSubmitMaterial", reqbody: pushObj, apiVersion: "2019-05-08" });
console.log('ali ----- +++',ali)
if(ali && ali.status == 200){
var aliFlag = 200
}else{
var aliFlag = -200
}
} }
if(res.data.uapp_id == uappId.baidu){ if(actionBody.uapp_id == uappId.baidu){
//推送数据至百度 //推送数据至百度
var BizId = needsolution.orderChannelNo;
console.log('BizId++',BizId)
var pushObj = { var pushObj = {
"businessLicense" : { "businessLicense" : {
"createdAt" : material.BusinessLicense.CreatedAt || "", "address" :actionBody.businessLicense.address || "",
"enterpriseCode" :material.BusinessLicense.EnterpriseCode || "", "businessTerm" :actionBody.businessLicense.businessTerm || "",
"legalRepresentative" :material.BusinessLicense.LegalRepresentative || "", "createdAt" : actionBody.businessLicense.createdAt || "",
"address" :material.BusinessLicense.Address || "", "enterpriseCode" :actionBody.businessLicense.enterpriseCode || "",
"registeredCapital" : material.BusinessLicense.RegisteredCapital || "", "legalRepresentative" :actionBody.businessLicense.legalRepresentative || "",
"name" :material.BusinessLicense.Name || "", "name" :actionBody.businessLicense.name || "",
"businessTerm" :material.BusinessLicense.BusinessTerm || "", "registeredCapital" : actionBody.businessLicense.registeredCapital || "",
"type" : material.BusinessLicense.Type || "", "scopeBusiness" :actionBody.businessLicense.scopeBusiness || "",
"scopeBusiness" :material.BusinessLicense.ScopeBusiness || "" "type" : actionBody.businessLicense.type || ""
}, },
"partnerForeignInvestment": material.PartnerForeignInvestment || "", "domain": actionBody.domain,
"orderNo": BizId, "corporateName": actionBody.corporateName,
"domain": material.Domain, "includeForeignInvestment": actionBody.includeForeignInvestment,
"corporateName": material.CorporateName, "orderNo": actionBody.orderNo,
"includeForeignInvestment": material.IncludeForeignInvestment, "partnerForeignInvestment": actionBody.partnerForeignInvestment || "",
"partnerBusinessLicense": material.PartnerBusinessLicense, "partnerBusinessLicense": actionBody.partnerBusinessLicense,
"partnerIdCardList": material.PartnerIdCardList, "partnerIdCardList": actionBody.partnerIdCardList,
"partnerDomainCertificate": material.PartnerDomainCertificate, "partnerDomainCertificate": actionBody.partnerDomainCertificate,
"partnerPreviewOtherList": material.PartnerPreviewOtherList || [], "partnerPreviewOtherList": actionBody.partnerPreviewOtherList || [],
"partnerPlan": material.PartnerPlan || "", "partnerPlan": actionBody.partnerPlan || "",
"partnerLaw": material.PartnerLaw || "", "partnerLaw": actionBody.partnerLaw || "",
"partnerStampOtherList": material.PartnerStampOtherList || [], "partnerStampOtherList": actionBody.partnerStampOtherList || [],
"partnerSignOtherList": material.PartnerSignOtherList || [], "partnerSignOtherList": actionBody.partnerSignOtherList || [],
"partnerSignAndStampOtherList": material.PartnerSignAndStampOtherList || [] "partnerSignAndStampOtherList": actionBody.partnerSignAndStampOtherList || []
}; };
var self = this; var self = this;
//推送方案材料 //推送方案材料
var r = await self.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/material", reqbody: pushObj }); var baidu = await self.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/material", reqbody: pushObj });
console.log('rrrr+++++',r) console.log('baidu -----+++++',baidu)
if(baidu && baidu.data && baidu.data.result){
var baiduFlag = 200
}else{
var baiduFlag = -200
}
console.log('hhhhh+++baiduFlag+++',baiduFlag)
} }
return system.getResultSuccess(); this.logCtl.info({
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key || "" : "",
requestId: pobj.requestId || "",
op: "app/base/service/impl/common/baseCenterOrderSve.js/serviceProviderSubmit2Material",
content: JSON.stringify(pobj),
resultInfo: JSON.stringify(pushRes),
optitle: "serviceProviderSubmit2Material推送ICP材料至渠道方->serviceProviderSubmit2Material",
});
} }
return res; if(aliFlag == 200 || baiduFlag == 200){
// pushRes.status = 1
return system.getResultRedisQueueSuccess();
}
return pushRes;
} }
//交付材料提交
async serviceProviderSubmitMaterial(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
console.log('zzzzlllll+++++',res)
console.log('zzzzlllll++pobj+++',pobj)
if (res && res.status == 0 && res.data) {
var needsolution = res.data;//方案信息
var ab = pobj.actionBody;
if (typeof (ab.material) == "string") {
ab.material = JSON.parse(ab.material);
}
var material = ab.material;
var reqPushParams = {};
if(ab.isTest && ab.isTest==1){
if(res.data.uapp_id == uappId.ali){
//推送数据至阿里
var BizId = needsolution.channelSolutionNo;//⽅案业务ID
reqPushParams = {
actionBody: {
"uapp_id":res.data.uapp_id,
"BizId": BizId,
"Domain": material.Domain,
"CorporateName": material.CorporateName,
"IncludeForeignInvestment": material.IncludeForeignInvestment,
"PartnerBusinessLicense": material.PartnerBusinessLicense,
"PartnerIdCardList": material.PartnerIdCardList,
"PartnerDomainCertificate": material.PartnerDomainCertificate,
"PartnerPreviewOtherList": material.PartnerPreviewOtherList || [],
"PartnerPlan": material.PartnerPlan || "",
"PartnerForeignInvestment": material.PartnerForeignInvestment || "",
"PartnerLaw": material.PartnerLaw || "",
"PartnerStampOtherList": material.PartnerStampOtherList || [],
"PartnerSignOtherList": material.PartnerSignOtherList || [],
"PartnerSignAndStampOtherList": material.PartnerSignAndStampOtherList || []
},
appInfo: pobj.appInfo
};
}
if(res.data.uapp_id == uappId.baidu){
//推送数据至百度
var BizId = needsolution.orderChannelNo;
console.log('BizId++',BizId)
console.log('productType++',res.data.productType)
reqPushParams = {
actionBody: {
"uapp_id":res.data.uapp_id,
"businessLicense" : {
"address" :material.BusinessLicense.Address || "",
"businessTerm" :material.BusinessLicense.BusinessTerm || "",
"createdAt" : material.BusinessLicense.CreatedAt || "",
"enterpriseCode" :material.BusinessLicense.EnterpriseCode || "",
"legalRepresentative" :material.BusinessLicense.LegalRepresentative || "",
"name" :material.BusinessLicense.Name || "",
"registeredCapital" : material.BusinessLicense.RegisteredCapital || "",
"scopeBusiness" :material.BusinessLicense.ScopeBusiness || "",
"type" : material.BusinessLicense.Type || ""
},
"corporateName": material.CorporateName,
"domain": material.Domain,
"includeForeignInvestment": material.IncludeForeignInvestment,
"orderNo": BizId,
"partnerForeignInvestment": material.PartnerForeignInvestment || "",
"partnerBusinessLicense": material.PartnerBusinessLicense,
"partnerIdCardList": material.PartnerIdCardList,
"partnerDomainCertificate": material.PartnerDomainCertificate,
"partnerPreviewOtherList": material.PartnerPreviewOtherList || [],
"partnerPlan": material.PartnerPlan || "",
"partnerLaw": material.PartnerLaw || "",
"partnerStampOtherList": material.PartnerStampOtherList || [],
"partnerSignOtherList": material.PartnerSignOtherList || [],
"partnerSignAndStampOtherList": material.PartnerSignAndStampOtherList || []
},
appInfo: pobj.appInfo
}
}
var result = await this.utilsPushSve.business2Channel(reqPushParams, "serviceProviderSubmit2Material");
console.log('result+++-cailiao--++++----',result)
console.log('result+++-reqPushParams--++++----',reqPushParams)
}else{
if(res.data.uapp_id == uappId.ali){
//推送数据至阿里
var BizId = needsolution.channelSolutionNo;//⽅案业务ID
var pushObj = {
"BizId": BizId,
"Domain": material.Domain,
"CorporateName": material.CorporateName,
"IncludeForeignInvestment": material.IncludeForeignInvestment,
"PartnerBusinessLicense": material.PartnerBusinessLicense,
"PartnerIdCardList": material.PartnerIdCardList,
"PartnerDomainCertificate": material.PartnerDomainCertificate,
"PartnerPreviewOtherList": material.PartnerPreviewOtherList || [],
"PartnerPlan": material.PartnerPlan || "",
"PartnerForeignInvestment": material.PartnerForeignInvestment || "",
"PartnerLaw": material.PartnerLaw || "",
"PartnerStampOtherList": material.PartnerStampOtherList || [],
"PartnerSignOtherList": material.PartnerSignOtherList || [],
"PartnerSignAndStampOtherList": material.PartnerSignAndStampOtherList || []
};
var self = this;
//推送方案材料
var ali = self.aliclient.reqbyget({ action: "SavePartnerSubmitMaterial", reqbody: pushObj, apiVersion: "2019-05-08" });
console.log('ali tui ziliao ++',ali)
if(ali && ali.status == 200){
var aliFlag = 200
}else{
var aliFlag = -200
}
}
if(res.data.uapp_id == uappId.baidu){
//推送数据至百度
var BizId = needsolution.orderChannelNo;
console.log('BizId++',BizId)
var pushObj = {
"businessLicense" : {
"createdAt" : material.BusinessLicense.CreatedAt || "",
"enterpriseCode" :material.BusinessLicense.EnterpriseCode || "",
"legalRepresentative" :material.BusinessLicense.LegalRepresentative || "",
"address" :material.BusinessLicense.Address || "",
"registeredCapital" : material.BusinessLicense.RegisteredCapital || "",
"name" :material.BusinessLicense.Name || "",
"businessTerm" :material.BusinessLicense.BusinessTerm || "",
"type" : material.BusinessLicense.Type || "",
"scopeBusiness" :material.BusinessLicense.ScopeBusiness || ""
},
"partnerForeignInvestment": material.PartnerForeignInvestment || "",
"orderNo": BizId,
"domain": material.Domain,
"corporateName": material.CorporateName,
"includeForeignInvestment": material.IncludeForeignInvestment,
"partnerBusinessLicense": material.PartnerBusinessLicense,
"partnerIdCardList": material.PartnerIdCardList,
"partnerDomainCertificate": material.PartnerDomainCertificate,
"partnerPreviewOtherList": material.PartnerPreviewOtherList || [],
"partnerPlan": material.PartnerPlan || "",
"partnerLaw": material.PartnerLaw || "",
"partnerStampOtherList": material.PartnerStampOtherList || [],
"partnerSignOtherList": material.PartnerSignOtherList || [],
"partnerSignAndStampOtherList": material.PartnerSignAndStampOtherList || []
};
var self = this;
//推送方案材料
var baidu = await self.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/material", reqbody: pushObj });
console.log('baidu tui ziliao +++++',baidu)
console.log('baidu pushObj ziliao +++++',pushObj)
if(baidu && baidu.data && baidu.data.result){
var baiduFlag = 200
}else{
var baiduFlag = -200
}
}
if(aliFlag == 200 || baiduFlag == 200){
return system.getResultSuccess();
}
}
console.log('rsrsr++++------------++++',res)
return res
}
}
//队列通知交付状态变更
async serviceProvider2Notification(pobj){
console.log("serviceProvider2Notification+++++pobj+++",pobj)
var actionBody = pobj.actionBody;
var appInfo = pobj.appInfo;
var pushRes = {
status:-1,msg:"推送失败"
};
if(actionBody){
if(actionBody.uapp_id == uappId.ali){
//推送数据至阿里
var pushObj = {
BizId: actionBody.BizId,
OfficialFileURL: actionBody.OfficialFileURL,
ApplicationStatus: actionBody.ApplicationStatus
};
//推送状态变更
var ali = await this.aliclient.reqbyget({ action: "AcceptPartnerNotification", reqbody: pushObj, apiVersion: "2019-05-08" });
console.log('状态变更 ali ----- +++',ali)
if(ali && ali.status == 200){
var aliFlag = 200
}else{
var aliFlag = -200
}
}
if(actionBody.uapp_id == uappId.baidu){
// actionBody.ApplicationStatus = baiduIcpStatus[actionBody.ApplicationStatus];
//推送数据至百度
var pushObj = {
orderNo: actionBody.orderNo,
status: actionBody.status
};
console.log('pushObj 推送状态变更 +++++',pushObj)
//推送状态变更
var baidu = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/update", reqbody: pushObj });
console.log('baidu 推送状态变更 +++++',baidu)
if(baidu && baidu.data && baidu.data.result){
var baiduFlag = 200
}else{
var baiduFlag = -200
}
}
this.logCtl.info({
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key || "" : "",
requestId: pobj.requestId || "",
op: "app/base/service/impl/common/baseCenterOrderSve.js/serviceProvider2Notification",
content: JSON.stringify(pobj),
resultInfo: JSON.stringify(pushRes),
optitle: "serviceProvider2Notification推送ICP材料至渠道方->serviceProvider2Notification",
});
}
if(aliFlag == 200 || baiduFlag == 200){
pushRes.status = 1
return system.getResultRedisQueueSuccess();
}
return pushRes;
}
//通知交付状态变更 //通知交付状态变更
async serviceProviderNotification(pobj) { async serviceProviderNotification(pobj) {
console.log('zhuangtai ++++',pobj)
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) {
if(res.data.uapp_id == uappId.ali){ if(pobj.actionBody.isTest && pobj.actionBody.isTest==1){
//推送数据至阿里 var reqPushParams = {};
if(res.data.uapp_id == uappId.ali){
//推送数据至阿里
reqPushParams = {
actionBody: {
uapp_id:res.data.uapp_id,
BizId: res.data.BizId,
OfficialFileURL: res.data.OfficialFileURL,
ApplicationStatus: res.data.ApplicationStatus
},
appInfo:pobj.appInfo
}
}
if(res.data.uapp_id == uappId.baidu){
res.data.ApplicationStatus = baiduIcpStatus[res.data.ApplicationStatus];
//推送数据至百度
reqPushParams = {
actionBody:{
uapp_id:res.data.uapp_id,
orderNo: res.data.channelOrderNo,
status: res.data.ApplicationStatus
},
appInfo:pobj.appInfo
}
}
var result = await this.utilsPushSve.business2Channel(reqPushParams, "serviceProvider2Notification");
console.log('reqPushParams+++-状态变更--++++----',reqPushParams)
console.log('result+++-状态变更--++++----',result)
}else{
if(res.data.uapp_id == uappId.ali){
//推送数据至阿里
var pushObj = { var pushObj = {
BizId: res.data.BizId, BizId: res.data.BizId,
OfficialFileURL: res.data.OfficialFileURL, OfficialFileURL: res.data.OfficialFileURL,
ApplicationStatus: res.data.ApplicationStatus ApplicationStatus: res.data.ApplicationStatus
}; };
//推送状态变更 //推送状态变更
this.aliclient.reqbyget({ action: "AcceptPartnerNotification", reqbody: pushObj, apiVersion: "2019-05-08" }); var ali = await this.aliclient.reqbyget({ action: "AcceptPartnerNotification", reqbody: pushObj, apiVersion: "2019-05-08" });
if(ali && ali.status == 200){
var aliFlag = 200
}else{
var aliFlag = -200
}
} }
if(res.data.uapp_id == uappId.baidu){ if(res.data.uapp_id == uappId.baidu){
res.data.ApplicationStatus = baiduIcpStatus[res.data.ApplicationStatus]; res.data.ApplicationStatus = baiduIcpStatus[res.data.ApplicationStatus];
console.log('res.data.channelOrderNo',res.data.channelOrderNo) console.log('res.data.channelOrderNo',res.data.channelOrderNo)
//推送数据至百度 //推送数据至百度
var pushObj = { var pushObj = {
orderNo: res.data.channelOrderNo, orderNo: res.data.channelOrderNo,
status: res.data.ApplicationStatus status: res.data.ApplicationStatus
}; };
//推送状态变更 //推送状态变更
this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/update", reqbody: pushObj }); var baidu = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/update", reqbody: pushObj });
} console.log('res.data baidu +++++',baidu)
return system.getResultSuccess(); if(baidu && baidu.data && baidu.data.result){
var baiduFlag = 200
}else{
var baiduFlag = -200
}
}
if(aliFlag == 200 || baiduFlag == 200){
return system.getResultSuccess();
}
}
return res;
} }
return res;
} }
//交付单关闭 //交付单关闭
async closeOrderDelivery(pobj) { async closeOrderDelivery(pobj) {
......
...@@ -5,43 +5,12 @@ const { getResultSuccess } = require("../../../system"); ...@@ -5,43 +5,12 @@ const { getResultSuccess } = require("../../../system");
//区分渠道的uappid //区分渠道的uappid
const uappId = { const uappId = {
'ali':"18", //(阿里icp、edi) 'ali':"18", //(阿里)
'baidu':"44" //(百度icp、edi) 'baidu':"44" //(百度)
} }
//推送百度城市拼音转义 2020-11-6 //推送百度城市拼音转义 2020-11-6
const cityLetter = { const cityLetter = {
"北京":"BEIJING", "全国":"QUANGUO"
"上海":"SHANGHAI",
"福建":"FUJIAN",
"广西":"GUANGXI",
"广东":"GUANGDONG",
"安徽":"ANHUI",
"河南":"HENAN",
"湖北":"HUBEI",
"浙江":"ZHEJIANG",
"江苏":"JIANGSU",
"山东":"SHANDONG",
"陕西":"SHANXI_SHAN",
"宁夏":"NINGXIA",
"甘肃":"GANSU",
"新疆":"XINJIANG",
"青海":"QINGHAI",
"天津":"TIANJIN",
"重庆":"CHONGQING",
"河北":"HEBEI",
"山西":"SHANXI_JIN",
"辽宁":"LIAONING",
"吉林":"JILIN",
"黑龙江":"HEILONGJIANG",
"江西":"JIANGXI",
"湖南":"HUNAN",
"四川":"SUCHUAN",
"贵州":"GUIZHOU",
"云南":"YUANNAN",
"内蒙古":"NEIMENGGU",
"西藏":"XIZANG",
"外资":"WAIZI",
"海南":"HAINAN"
} }
//百度拼音转义 2020-11-11 laolan //百度拼音转义 2020-11-11 laolan
...@@ -53,6 +22,14 @@ const baiduIcpStatus = { ...@@ -53,6 +22,14 @@ const baiduIcpStatus = {
511: "APPROVED", 511: "APPROVED",
512: "NOT_APPROVED" 512: "NOT_APPROVED"
}; };
const baiduActionType = {
"新办" : "NEW"
}
const baiduLicenseType = {
"动漫" : "COMIC",
"音乐" : "MUSIC"
}
/** /**
* 网文相关接口(NC) * 网文相关接口(NC)
*/ */
...@@ -79,29 +56,6 @@ class NcService extends AppServiceBase { ...@@ -79,29 +56,6 @@ class NcService extends AppServiceBase {
return data; return data;
} }
//查询需求列表 2020-11-11 laolan
async ncGetNeedList(pobj){
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
if(res.data.uapp_id == uappId.baidu){
var pushObj = {
type:res.data.type,
begin:res.data.begin || "",
end:res.data.end || "",
intentionBizId:res.data.intentionBizId,
status:res.data.status,
area:res.data.area,
pagreSize:res.data.pagreSize || 10,
pageNum:res.data.pageNum || 1
}
//查询需求列表
var r = await this.baiduclient.baiduReqbyget({ path: "////", reqbody: pushObj });
console.log('nc rrrr+++++',r)
}
return getResultSuccess();
}
return res
}
//交付材料提交 2020-11-11 laolan //交付材料提交 2020-11-11 laolan
...@@ -110,65 +64,45 @@ class NcService extends AppServiceBase { ...@@ -110,65 +64,45 @@ class NcService extends AppServiceBase {
if (res && res.status == 0 && res.data) { if (res && res.status == 0 && res.data) {
var needsolution = res.data;//方案信息 var needsolution = res.data;//方案信息
var ab = pobj.actionBody; var ab = pobj.actionBody;
if (typeof (ab.material) == "string") { console.log("cailiao ab+++++",ab)
ab.material = JSON.parse(ab.material);
}
var material = ab.material;
if(res.data.uapp_id == uappId.baidu){ if(res.data.uapp_id == uappId.baidu){
//推送数据至百度 //推送数据至百度
var bizId = needsolution.orderChannelNo; var bizId = needsolution.orderChannelNo;
console.log('bizId++',bizId) console.log('bizId++',bizId)
var pushObj = { var pushObj = {
"orderNo": bizId, "orderNo": bizId,
"businessLicense" : { "type":res.data.productType,
"name" :material.businessLicense.name || "", "businessLicense" : {
"type" : material.businessLicense.type || "", "name" :ab.material.businessLicense.name || "",
"address" :material.businessLicense.address || "", "type" : ab.material.businessLicense.type || "",
"createdAt" : material.businessLicense.createdAt || "", "address" :ab.material.businessLicense.address || "",
"businessTerm" :material.businessLicense.businessTerm || "", "createdAt" : ab.material.businessLicense.createdAt || "",
"scopeBusiness" :material.businessLicense.scopeBusiness || "", "businessTerm" :ab.material.businessLicense.businessTerm || "",
"enterpriseCode" :material.businessLicense.enterpriseCode || "", "scopeBusiness" :ab.material.businessLicense.scopeBusiness || "",
"registeredCapital" : material.businessLicense.registeredCapital || "", "enterpriseCode" :ab.material.businessLicense.enterpriseCode || "",
"legalRepresentative" :material.businessLicense.legalRepresentative || "", "registeredCapital" : ab.material.businessLicense.registeredCapital || "",
}, "legalRepresentative" :ab.material.businessLicense.legalRepresentative || "",
"partnerBusinessLicense": material.partnerBusinessLicense || "", },
"legalPersonIdentityCard":material.legalPersonIdentityCard || "", "material":{
"businessDevelopmentDescription":material.businessDevelopmentDescription || "", "partnerBusinessLicense": ab.material.partnerBusinessLicense || "",
"companyPolicy":material.companyPolicy || "", "legalPersonIdentityCard":ab.material.legalPersonIdentityCard || "",
"mainManagement":material.mainManagement || "", "businessDevelopmentDescription":ab.material.businessDevelopmentDescription || "",
"creditCertificateDocument":material.creditCertificateDocument || "", "companyPolicy":ab.material.companyPolicy || "",
"registeredAddressCertificateDocument":material.registeredAddressCertificateDocument || "", "mainManagement":ab.material.mainManagement || "",
"partnerOtherList":material.partnerOtherList || "" "creditCertificateDocument":ab.material.creditCertificateDocument || "",
"registeredAddressCertificateDocument":ab.material.registeredAddressCertificateDocument || "",
"partnerOtherList":ab.material.partnerOtherList || ""
}
}; };
//推送方案材料 //推送方案材料
var r = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/material", reqbody: pushObj }); var r = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/material?NC_RT=", reqbody: pushObj });
console.log('tttttttttttt++++',pushObj)
console.log('nc rrrr+++++',r) console.log('nc rrrr+++++',r)
} }
return system.getResultSuccess(); return system.getResultSuccess();
} }
return res; return res;
} }
//通知交付状态变更 2020-11-11 laolan
async ncNotification(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
if(res.data.uapp_id == uappId.baidu){
res.data.applicationStatus = baiduIcpStatus[res.data.applicationStatus];
console.log('nc res.data.channelOrderNo',res.data.channelOrderNo)
//推送数据至百度
var pushObj = {
orderNo: res.data.channelOrderNo,
status: res.data.applicationStatus,
};
//推送状态变更
var r = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/update", reqbody: pushObj });
console("nc tongzhi+++",r)
}
return system.getResultSuccess();
}
return res;
}
//提交方案 2020-11-11 laolan //提交方案 2020-11-11 laolan
async ncSubmitSolution(pobj) { async ncSubmitSolution(pobj) {
...@@ -177,11 +111,7 @@ class NcService extends AppServiceBase { ...@@ -177,11 +111,7 @@ class NcService extends AppServiceBase {
console.log('nc+++res',res) console.log('nc+++res',res)
if (res && res.status == 0 && res.data) { if (res && res.status == 0 && res.data) {
console.log('nc solutionContent+++',res.data.needsolution.solutionContent); console.log('nc solutionContent+++',res.data.needsolution.solutionContent);
var solution = res.data.needsolution.solutionContent;
var needsolution = res.data.needsolution;//方案信息 var needsolution = res.data.needsolution;//方案信息
solution = JSON.parse(solution);
solution = solution.solution
solution = JSON.stringify(solution)
//推送交付系统 //推送交付系统
var reqParams = { var reqParams = {
...@@ -207,9 +137,12 @@ class NcService extends AppServiceBase { ...@@ -207,9 +137,12 @@ class NcService extends AppServiceBase {
if(res.data.needinfo.uapp_id == uappId.baidu){ if(res.data.needinfo.uapp_id == uappId.baidu){
//推送数据至baidu //推送数据至baidu
var pushObj = { var pushObj = {
intentionBizId: res.data.needinfo.channelNeedNo, requirementId: pobj.actionBody.needNo,
bizType: res.data.needinfo.bizType, companyName: pobj.actionBody.solutionContent.solution.CompanyName,
solution: solution subType: baiduLicenseType[pobj.actionBody.solutionContent.solution.LicenseType],
area: cityLetter[pobj.actionBody.solutionContent.solution.Area],
type:pobj.actionBody.solutionContent.solution.IcpType,
actionType:baiduActionType[pobj.actionBody.solutionContent.solution.ActionType]
}; };
console.log("nc pushObj+++",pushObj); console.log("nc pushObj+++",pushObj);
var r = await this.pushBaiduNcSubmitSolution(pushObj, needsolution.solutionNo, pobj.appInfo, self); var r = await this.pushBaiduNcSubmitSolution(pushObj, needsolution.solutionNo, pobj.appInfo, self);
...@@ -222,8 +155,8 @@ class NcService extends AppServiceBase { ...@@ -222,8 +155,8 @@ class NcService extends AppServiceBase {
//推送方案baidu 2020-11-11 laolan //推送方案baidu 2020-11-11 laolan
async pushBaiduNcSubmitSolution(pushObj, solutionNo, appInfo, self) { async pushBaiduNcSubmitSolution(pushObj, solutionNo, appInfo, self) {
//推送状态变更 //推送提交方案baidu
var pushRes = await this.baiduclient.baiduReqbyget({ path: "///", reqbody: pushObj }); var pushRes = await self.baiduclient.baiduReqbyget({ path: "/api/bla/provider/plan", reqbody: pushObj });
console.log('baidu nc++++pushRes',pushRes) console.log('baidu nc++++pushRes',pushRes)
if (pushRes && pushRes.status == 0 && pushRes.data) { if (pushRes && pushRes.status == 0 && pushRes.data) {
var resData = pushRes.data; var resData = pushRes.data;
...@@ -232,89 +165,55 @@ class NcService extends AppServiceBase { ...@@ -232,89 +165,55 @@ class NcService extends AppServiceBase {
appInfo: appInfo, appInfo: appInfo,
actionBody: { actionBody: {
solutionNo: solutionNo, solutionNo: solutionNo,
solutionBizId: resData.SolutionBizId solutionBizId: resData.planId
} }
}; };
console.log('zhuangtai reqObj2++++',reqObj2)
var a = await self.reqCenterOrderApi(reqObj2);//保存渠道方案id var a = await self.reqCenterOrderApi(reqObj2);//保存渠道方案id
console.log("zhuangtai a++++",a)
return a; return a;
} }
} }
//提交沟通记录 2020-11-11 laolan //通知交付状态变更 2020-11-11 laolan
async ncWriteCommunicationRecord(pobj) { async ncNotification(pobj) {
console.log('nc 提交沟通记录pobj',pobj)
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard"); var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
console.log('nc 提交沟通记录res',res) console.log("nc tongzhi++res+++",res)
if(res && res.data && res.status == 0){ if (res && res.status == 0 && res.data) {
//推送交付系统 if(res.data.uapp_id == uappId.baidu){
var reqParams = { console.log('nc res.data.channelOrderNo',res.data.channelOrderNo)
actionBody: { //推送数据至百度
intentionBizId: pobj.actionBody.needNo,
status: "followingUp"
},
opType: "updateChanceStatus",
appInfo: pobj.appInfo
}
var push = await self.utilsPushSve.aliBusiness2Delivery(reqParams, "updateChanceStatus");
if( push && res.data.uapp_id == uappId.baidu){
//推送数据至baidu
var pushObj = { var pushObj = {
intentionBizId: pobj.actionBody.needNo, orderNo: res.data.channelOrderNo,
note: pobj.actionBody.note status: baiduIcpStatus[res.data.deliveryContent.ApplicationStatus],
}; };
//提交沟通记录 //推送状态变更
var r = await this.baiduclient.baiduReqbyget({ path: "////", reqbody: pushObj }); var r = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/update", reqbody: pushObj });
console.log("nc tongzhi++pushObj+++",pushObj)
console.log("nc tongzhi+++rrr",r)
} }
console.log('nc 提交沟通记录r++',r)
return system.getResultSuccess(); return system.getResultSuccess();
} }
return res;
} }
//查看沟通记录 2020-11-11 laolan
async ncGetCommunicationRecord(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
console.log('nc 查看沟通记录res-----',res)
if(res && res.data && res.status == 0){
if(res.data.uapp_id == uappId.baidu){
//推送数据至baidu
var pushObj = {
beginTime: pobj.actionBody.beginTime ? pobj.actionBody.beginTime : "",
endTime: pobj.actionBody.endTime ? pobj.actionBody.endTime : "",
intentionBizId: pobj.actionBody.needNo,
pageNum: pobj.actionBody.pageNum || 1,
pageSize: pobj.actionBody.pageSize || 10,
};
//查看沟通记录
var r = await this.baiduclient.baiduReqbyget({ path: "////", reqbody: pushObj });
if(r && r.data && r.data.data){
var len = r.data.data.length;
for(var i=0; i<len;i++){
r.data.data[i].createTime = r.data.data[i].createTime / 1000
}
}
console.log('nc 查看沟通记录++',r)
}
return system.getResultSuccess(r);
}
}
//关闭需求 2020-11-11 laolan //关闭需求 2020-11-11 laolan
async ncCloseNeed(pobj) { async ncCloseNeed(pobj) {
pobj.actionBody.intentionBizId = pobj.actionBody.channelNeedNo; console.log("关闭需求+++",pobj)
pobj.actionType = "ncClosePlan" pobj.actionType = "ncClosePlan"
var reqUrl = this.centerOrderUrl + "action/qcapi/springBoard"; var reqUrl = this.centerOrderUrl + "action/qcapi/springBoard";
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
console.log('nc 关闭需求result-----',result) console.log('nc 关闭需求result-----',result)
if (result.status == 0) { if (result.status == 0) {
if (result.data) { if (result.data && result.data.orderNo) {
pobj.actionBody.orderNo = result.data; pobj.actionBody.orderNo = result.data.orderNo;
var orderrtn = await this.utilsOrderSve.delOrder(pobj, pobj.actionBody); var orderrtn = await this.utilsOrderSve.delOrder(pobj, pobj.actionBody);
if (orderrtn.status < 0) { console.log("orderrtn +++ +++ ++",orderrtn)
return system.getResultFail(-5022, "订单关闭失败"); if (orderrtn.status < 0) {
} return system.getResultFail(-5022, "订单关闭失败");
}
} }
//推送交付系统 //推送交付系统
...@@ -337,67 +236,22 @@ class NcService extends AppServiceBase { ...@@ -337,67 +236,22 @@ class NcService extends AppServiceBase {
resultInfo: "", resultInfo: "",
optitle: "updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery", optitle: "updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery",
}); });
if(res.data.uapp_id == uappId.baidu){ if(result.data.uapp_id == uappId.baidu){
// 推送baidu // 推送baidu
var pushObj = { var pushObj = {
intentionBizId: pobj.actionBody.needNo, requirementId: pobj.actionBody.needNo,
bizType: pobj.actionBody.bizType, status: "CLOSED",
note : pobj.actionBody.note note : pobj.actionBody.note
} }
var r = await this.baiduclient.baiduReqbyget({ path: "////", pushObj }); var a = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/requirement/update", reqbody: pushObj});
console.log('nc closeNeed+++',r) console.log('nc closeNeed+++',a)
} }
this.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseNcNeed"); this.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed");
return system.getResultSuccess(); return system.getResultSuccess();
} else { } else {
return system.getResult(null, "close fail 100389 "); return system.getResult(null, "close fail 100389 ");
} }
} }
//服务商方案关闭 2020-11-11 laolan
async ncClosePlan(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
var needsolution = res.data;//方案信息
var ab = pobj.actionBody;
if (typeof (ab.material) == "string") {
ab.material = JSON.parse(ab.material);
}
if(res.data.uapp_id == uappId.baidu){
//推送数据至baidu
var pushObj = {
bizId: ab.bizId,
note: ab.note
};
//关闭方案
var r = await this.baiduclient.baiduReqbyget({ path: "////", reqbody: pushObj });
console.log('nc cloesePlan r+++',r)
}
return system.getResultSuccess();
}
return res;
}
//交付单关闭 2020-11-11 laolan
async ncCloseOrderDelivery(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
var needsolution = res.data;//方案信息
var ab = pobj.actionBody;
if(res.data.uapp_id == uappId.baidu){
//推送数据至baidu
var pushObj = {
bizId: needsolution.channelSolutionNo,
note: ab.note
};
//关闭方案
var r = await this.baiduclient.baiduReqbyget({ path: "///", reqbody: pushObj });
console.log('nc交付单关闭+++',r)
}
return system.getResultSuccess();
}
return res;
}
} }
module.exports = NcService; module.exports = NcService;
\ No newline at end of file
const system = require("../../../system"); const system = require("../../../system");
var settings = require("../../../../config/settings"); var settings = require("../../../../config/settings");
const AppServiceBase = require("../../app.base"); const AppServiceBase = require("../../app.base");
const { getResultSuccess } = require("../../../system");
//区分渠道的uappid //区分渠道的uappid
const uappId = { const uappId = {
'ali':"18", //(阿里icp、edi) 'ali':"18", //(阿里)
'baidu':"44" //(百度icp、edi) 'baidu':"44" //(百度)
} }
//推送百度城市拼音转义 2020-11-6 //推送百度城市拼音转义 2020-11-6
const cityLetter = { const cityLetter = {
"北京":"BEIJING", "北京":"BEIJING",
"上海":"SHANGHAI", "上海":"SHANGHAI",
"福建":"FUJIAN", "四川":"SICHUAN",
"广西":"GUANGXI", "广州":"GUANGZHOU",
"广东":"GUANGDONG", "深圳":"SHENZHEN",
"安徽":"ANHUI",
"河南":"HENAN",
"湖北":"HUBEI",
"浙江":"ZHEJIANG",
"江苏":"JIANGSU",
"山东":"SHANDONG",
"陕西":"SHANXI_SHAN",
"宁夏":"NINGXIA",
"甘肃":"GANSU",
"新疆":"XINJIANG",
"青海":"QINGHAI",
"天津":"TIANJIN",
"重庆":"CHONGQING",
"河北":"HEBEI",
"山西":"SHANXI_JIN",
"辽宁":"LIAONING",
"吉林":"JILIN",
"黑龙江":"HEILONGJIANG",
"江西":"JIANGXI",
"湖南":"HUNAN",
"四川":"SUCHUAN",
"贵州":"GUIZHOU",
"云南":"YUANNAN",
"内蒙古":"NEIMENGGU",
"西藏":"XIZANG",
"外资":"WAIZI",
"海南":"HAINAN"
} }
//百度拼音转义 2020-11-11 laolan //百度拼音转义 2020-11-11 laolan
...@@ -52,8 +26,16 @@ const baiduIcpStatus = { ...@@ -52,8 +26,16 @@ const baiduIcpStatus = {
511: "APPROVED", 511: "APPROVED",
512: "NOT_APPROVED" 512: "NOT_APPROVED"
}; };
const baiduActionType = {
"新办" : "NEW"
}
// const baiduLicenseType = {
// "动漫" : "COMIC",
// "音乐" : "MUSIC"
// }
/** /**
* 广电相关接口(RT) * 相关接口(RT)
*/ */
class RtService extends AppServiceBase { class RtService extends AppServiceBase {
constructor() { constructor() {
...@@ -79,95 +61,51 @@ class RtService extends AppServiceBase { ...@@ -79,95 +61,51 @@ class RtService extends AppServiceBase {
} }
//查询需求列表 2020-11-11 laolan
async rtGetNeedList(pobj){
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
if(res.data.uapp_id == uappId.baidu){
var pushObj = {
type:res.data.type,
begin:res.data.begin || "",
end:res.data.end || "",
intentionBizId:res.data.intentionBizId,
status:res.data.status,
area:res.data.area,
pagreSize:res.data.pagreSize || 10,
pageNum:res.data.pageNum || 1
}
//查询需求列表
var r = await this.baiduclient.baiduReqbyget({ path: "////", reqbody: pushObj });
console.log('rt rrrr+++++',r)
}
return getResultSuccess();
}
return res
}
//交付材料提交 2020-11-11 laolan //交付材料提交 2020-11-11 laolan
async rtSubmitMaterial(pobj) { async rtSubmitMaterial(pobj) {
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 needsolution = res.data;//方案信息 var needsolution = res.data;//方案信息
var ab = pobj.actionBody; var ab = pobj.actionBody;
if (typeof (ab.material) == "string") { console.log("cailiao ab+++++",ab)
ab.material = JSON.parse(ab.material);
}
var material = ab.material;
if(res.data.uapp_id == uappId.baidu){ if(res.data.uapp_id == uappId.baidu){
//推送数据至百度 //推送数据至百度
var bizId = needsolution.orderChannelNo; var bizId = needsolution.orderChannelNo;
console.log('rt bizId++',bizId) console.log('bizId++',bizId)
var pushObj = { var pushObj = {
"orderNo": bizId, "orderNo": bizId,
"type":res.data.productType,
"businessLicense" : { "businessLicense" : {
"name" :material.businessLicense.name || "", "name" :ab.material.businessLicense.name || "",
"type" : material.businessLicense.type || "", "type" : ab.material.businessLicense.type || "",
"address" :material.businessLicense.address || "", "address" :ab.material.businessLicense.address || "",
"createdAt" : material.businessLicense.createdAt || "", "createdAt" : ab.material.businessLicense.createdAt || "",
"businessTerm" :material.businessLicense.businessTerm || "", "businessTerm" :ab.material.businessLicense.businessTerm || "",
"scopeBusiness" :material.businessLicense.scopeBusiness || "", "scopeBusiness" :ab.material.businessLicense.scopeBusiness || "",
"enterpriseCode" :material.businessLicense.enterpriseCode || "", "enterpriseCode" :ab.material.businessLicense.enterpriseCode || "",
"registeredCapital" : material.businessLicense.registeredCapital || "", "registeredCapital" : ab.material.businessLicense.registeredCapital || "",
"legalRepresentative" :material.businessLicense.legalRepresentative || "", "legalRepresentative" :ab.material.businessLicense.legalRepresentative || "",
}, },
"partnerBusinessLicense": material.partnerBusinessLicense || "", "material":{
"legalPersonIdentityCard":material.legalPersonIdentityCard || "", "partnerBusinessLicense": ab.material.partnerBusinessLicense || "",
"administrativeLicenseAuthorization":material.administrativeLicenseAuthorization || "", "legalPersonIdentityCard":ab.material.legalPersonIdentityCard || "",
"companyPolicy":material.companyPolicy || "", "businessDevelopmentDescription":ab.material.businessDevelopmentDescription || "",
"mainManagement":material.mainManagement || "", "companyPolicy":ab.material.companyPolicy || "",
"radioAndTelevisionQualifications":material.radioAndTelevisionQualifications || "", "mainManagement":ab.material.mainManagement || "",
"registeredAddressCertificateDocument":material.registeredAddressCertificateDocument || "", "creditCertificateDocument":ab.material.creditCertificateDocument || "",
"partnerOtherList":material.partnerOtherList || "" "registeredAddressCertificateDocument":ab.material.registeredAddressCertificateDocument || "",
"partnerOtherList":ab.material.partnerOtherList || ""
}
}; };
//推送方案材料 //推送方案材料
var r = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/material", reqbody: pushObj }); var r = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/material?NC_RT=", reqbody: pushObj });
console.log('tttttttttttt++++',pushObj)
console.log('rt rrrr+++++',r) console.log('rt rrrr+++++',r)
} }
return system.getResultSuccess(); return system.getResultSuccess();
} }
return res; return res;
} }
//通知交付状态变更 2020-11-11 laolan
async rtNotification(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
if(res.data.uapp_id == uappId.baidu){
res.data.applicationStatus = baiduIcpStatus[res.data.applicationStatus];
console.log('rt res.data.channelOrderNo+++',res.data.channelOrderNo)
//推送数据至百度
var pushObj = {
orderNo: res.data.channelOrderNo,
status: res.data.applicationStatus,
};
//推送状态变更
var r = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/update", reqbody: pushObj });
console("rt tongzhi+++",r)
}
return system.getResultSuccess();
}
return res;
}
//提交方案 2020-11-11 laolan //提交方案 2020-11-11 laolan
async rtSubmitSolution(pobj) { async rtSubmitSolution(pobj) {
...@@ -176,11 +114,7 @@ class RtService extends AppServiceBase { ...@@ -176,11 +114,7 @@ class RtService extends AppServiceBase {
console.log('rt+++res',res) console.log('rt+++res',res)
if (res && res.status == 0 && res.data) { if (res && res.status == 0 && res.data) {
console.log('rt solutionContent+++',res.data.needsolution.solutionContent); console.log('rt solutionContent+++',res.data.needsolution.solutionContent);
var solution = res.data.needsolution.solutionContent;
var needsolution = res.data.needsolution;//方案信息 var needsolution = res.data.needsolution;//方案信息
solution = JSON.parse(solution);
solution = solution.solution
solution = JSON.stringify(solution)
//推送交付系统 //推送交付系统
var reqParams = { var reqParams = {
...@@ -198,18 +132,20 @@ class RtService extends AppServiceBase { ...@@ -198,18 +132,20 @@ class RtService extends AppServiceBase {
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "", appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key || "" : "", appkey: pobj.appInfo ? pobj.appInfo.uapp_key || "" : "",
requestId: pobj.requestId || "", requestId: pobj.requestId || "",
op: "service/impl/common/rtSve.js/rtSubmitSolution", op: "service/impl/common/ncSve.js/ncSubmitSolution",
content: JSON.stringify(reqParams), content: JSON.stringify(reqParams),
resultInfo: "", resultInfo: "",
optitle: "updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery", optitle: "updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery",
}); });
if(res.data.uapp_id == uappId.baidu){ if(res.data.needinfo.uapp_id == uappId.baidu){
//推送数据至baidu //推送数据至baidu
var pushObj = { var pushObj = {
intentionBizId: res.data.needinfo.channelNeedNo, requirementId: pobj.actionBody.needNo,
bizType: res.data.needinfo.channelTypeCode, companyName: pobj.actionBody.solutionContent.solution.CompanyName,
// solution: res.data.needsolution.solutionContent // subType: baiduLicenseType[pobj.actionBody.solutionContent.solution.LicenseType],
solution: solution area: cityLetter[pobj.actionBody.solutionContent.solution.Area],
type:pobj.actionBody.solutionContent.solution.IcpType,
actionType:baiduActionType[pobj.actionBody.solutionContent.solution.ActionType]
}; };
console.log("rt pushObj+++",pushObj); console.log("rt pushObj+++",pushObj);
var r = await this.pushBaiduRtSubmitSolution(pushObj, needsolution.solutionNo, pobj.appInfo, self); var r = await this.pushBaiduRtSubmitSolution(pushObj, needsolution.solutionNo, pobj.appInfo, self);
...@@ -222,9 +158,9 @@ class RtService extends AppServiceBase { ...@@ -222,9 +158,9 @@ class RtService extends AppServiceBase {
//推送方案baidu 2020-11-11 laolan //推送方案baidu 2020-11-11 laolan
async pushBaiduRtSubmitSolution(pushObj, solutionNo, appInfo, self) { async pushBaiduRtSubmitSolution(pushObj, solutionNo, appInfo, self) {
//推送状态变更 //推送提交方案baidu
var pushRes = await this.baiduclient.baiduReqbyget({ path: "///", reqbody: pushObj }); var pushRes = await self.baiduclient.baiduReqbyget({ path: "/api/bla/provider/plan", reqbody: pushObj });
console.log(' rt++++pushRes',pushRes) console.log('baidu nc++++pushRes',pushRes)
if (pushRes && pushRes.status == 0 && pushRes.data) { if (pushRes && pushRes.status == 0 && pushRes.data) {
var resData = pushRes.data; var resData = pushRes.data;
var reqObj2 = { var reqObj2 = {
...@@ -232,88 +168,55 @@ class RtService extends AppServiceBase { ...@@ -232,88 +168,55 @@ class RtService extends AppServiceBase {
appInfo: appInfo, appInfo: appInfo,
actionBody: { actionBody: {
solutionNo: solutionNo, solutionNo: solutionNo,
solutionBizId: resData.SolutionBizId solutionBizId: resData.planId
} }
}; };
console.log('zhuangtai reqObj2++++',reqObj2)
var a = await self.reqCenterOrderApi(reqObj2);//保存渠道方案id var a = await self.reqCenterOrderApi(reqObj2);//保存渠道方案id
console.log("zhuangtai a++++",a)
return a; return a;
} }
} }
//提交沟通记录 2020-11-11 laolan //通知交付状态变更 2020-11-11 laolan
async rtWriteCommunicationRecord(pobj) { async rtNotification(pobj) {
console.log('rt 提交沟通记录pobj',pobj)
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard"); var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
console.log('rt 提交沟通记录res',res) console.log("rt tongzhi++res+++",res)
if(res && res.data && res.status == 0){ if (res && res.status == 0 && res.data) {
//推送交付系统 if(res.data.uapp_id == uappId.baidu){
var reqParams = { console.log('rt res.data.channelOrderNo',res.data.channelOrderNo)
actionBody: { //推送数据至百度
intentionBizId: pobj.actionBody.needNo,
status: "followingUp"
},
opType: "updateChanceStatus",
appInfo: pobj.appInfo
}
var push = await self.utilsPushSve.aliBusiness2Delivery(reqParams, "updateChanceStatus");
if( push && res.data.uapp_id == uappId.baidu){
//推送数据至baidu
var pushObj = { var pushObj = {
intentionBizId: pobj.actionBody.needNo, orderNo: res.data.channelOrderNo,
note: pobj.actionBody.note status: baiduIcpStatus[res.data.deliveryContent.ApplicationStatus],
}; };
//提交沟通记录 //推送状态变更
var r = await this.baiduclient.baiduReqbyget({ path: "////", reqbody: pushObj }); var r = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/license/update", reqbody: pushObj });
console.log("rt tongzhi++pushObj+++",pushObj)
console.log("rt tongzhi+++rrr",r)
} }
console.log('rt 提交沟通记录r++',r)
return system.getResultSuccess(); return system.getResultSuccess();
} }
} return res;
//查看沟通记录 2020-11-11 laolan
async rtGetCommunicationRecord(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
console.log('rt 查看沟通记录res-----',res)
if(res && res.data && res.status == 0){
if(res.data.uapp_id == uappId.baidu){
//推送数据至baidu
var pushObj = {
beginTime: pobj.actionBody.beginTime ? pobj.actionBody.beginTime : "",
endTime: pobj.actionBody.endTime ? pobj.actionBody.endTime : "",
intentionBizId: pobj.actionBody.needNo,
pageNum: pobj.actionBody.pageNum || 1,
pageSize: pobj.actionBody.pageSize || 10,
};
//查看沟通记录
var r = await this.baiduclient.baiduReqbyget({ path: "////", reqbody: pushObj });
if(r && r.data && r.data.data){
var len = r.data.data.length;
for(var i=0; i<len;i++){
r.data.data[i].createTime = r.data.data[i].createTime / 1000
}
}
console.log('rt 查看沟通记录++',r)
}
return system.getResultSuccess(r);
}
} }
//关闭需求 2020-11-11 laolan //关闭需求 2020-11-11 laolan
async rtCloseNeed(pobj) { async rtCloseNeed(pobj) {
pobj.actionBody.intentionBizId = pobj.actionBody.channelNeedNo; console.log("关闭需求+++",pobj)
pobj.actionType = "rtClosePlan" pobj.actionType = "rtClosePlan"
var reqUrl = this.centerOrderUrl + "action/qcapi/springBoard"; var reqUrl = this.centerOrderUrl + "action/qcapi/springBoard";
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
console.log('rt 关闭需求result-----',result) console.log('rt 关闭需求result-----',result)
if (result.status == 0) { if (result.status == 0) {
if (result.data) { if (result.data && result.data.orderNo) {
pobj.actionBody.orderNo = result.data; pobj.actionBody.orderNo = result.data.orderNo;
var orderrtn = await self.utilsOrderSve.delOrder(pobj, pobj.actionBody); var orderrtn = await this.utilsOrderSve.delOrder(pobj, pobj.actionBody);
if (orderrtn.status < 0) { console.log("orderrtn +++ +++ ++",orderrtn)
return system.getResultFail(-5022, "订单关闭失败"); if (orderrtn.status < 0) {
} return system.getResultFail(-5022, "订单关闭失败");
}
} }
//推送交付系统 //推送交付系统
...@@ -331,72 +234,27 @@ class RtService extends AppServiceBase { ...@@ -331,72 +234,27 @@ class RtService extends AppServiceBase {
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "", appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key || "" : "", appkey: pobj.appInfo ? pobj.appInfo.uapp_key || "" : "",
requestId: pobj.requestId || "", requestId: pobj.requestId || "",
op: "service/impl/common/rtSve.js/rtCloseNeed", op: "service/impl/common/ncSve.js/ncCloseNeed",
content: JSON.stringify(reqParams), content: JSON.stringify(reqParams),
resultInfo: "", resultInfo: "",
optitle: "updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery", optitle: "updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery",
}); });
if(res.data.uapp_id == uappId.baidu){ if(result.data.uapp_id == uappId.baidu){
// 推送baidu // 推送baidu
var pushObj = { var pushObj = {
intentionBizId: pobj.actionBody.needNo, requirementId: pobj.actionBody.needNo,
bizType: pobj.actionBody.bizType, status: "CLOSED",
note : pobj.actionBody.note note : pobj.actionBody.note
} }
var a = await this.baiduclient.baiduReqbyget({ path: "////", pushObj }); var a = await this.baiduclient.baiduReqbyget({ path: "/api/bla/provider/requirement/update", reqbody: pushObj});
console.log('rt closeNeed+++',a) console.log('rt closeNeed+++',a)
} }
this.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseRtNeed"); this.utilsPushSve.aliBusiness2Fq(pobj, "pushCloseICPNeed");
return system.getResultSuccess(); return system.getResultSuccess();
} else { } else {
return system.getResult(null, "close fail 100389 "); return system.getResult(null, "close fail 100389 ");
} }
} }
//服务商方案关闭 2020-11-11 laolan
async rtClosePlan(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
var needsolution = res.data;//方案信息
var ab = pobj.actionBody;
if (typeof (ab.material) == "string") {
ab.material = JSON.parse(ab.material);
}
if(res.data.uapp_id == uappId.baidu){
//推送数据至baidu
var pushObj = {
bizId: ab.bizId,
note: ab.note
};
//关闭方案
var r = await this.baiduclient.baiduReqbyget({ path: "////", reqbody: pushObj });
console.log('rt closePlan +++',r)
}
return system.getResultSuccess();
}
return res;
}
//交付单关闭 2020-11-11 laolan
async rtCloseOrderDelivery(pobj) {
var res = await this.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
if (res && res.status == 0 && res.data) {
var needsolution = res.data;//方案信息
var ab = pobj.actionBody;
if(res.data.uapp_id == uappId.baidu){
//推送数据至baidu
var pushObj = {
bizId: needsolution.channelSolutionNo,
note: ab.note
};
//关闭方案
var r = await this.baiduclient.baiduReqbyget({ path: "///", reqbody: pushObj });
console.log('rt 交付单关闭+++',r)
}
return system.getResultSuccess();
}
return res;
}
} }
module.exports = RtService; module.exports = RtService;
\ No newline at end of file
...@@ -113,13 +113,36 @@ class SignService{ ...@@ -113,13 +113,36 @@ class SignService{
} }
} }
module.exports = SignService; module.exports = SignService;
// var task = new SignService();
// var task = new SignService();
// var obj = { // var obj = {
// "intentionBizId": "TRE-vLTWoPv99nfceshishuju2", // "actionType": "serviceProviderSubmitMaterial",
// "description": "测试用户关闭2", // "actionBody": {
// "intentionStatus": 5 // "uapp_id":44,
// }; // "isTest":1,
// "orderNo":"OT442020112419480gtI",
// "material":{
// "BusinessLicense":{
// "Address":"x",
// "BusinessTerm":"x-x",
// "CreatedAt":"2020-11-17",
// "EnterpriseCode":"x",
// "LegalRepresentative":"x",
// "Name":"测试 百度渠道",
// "RegisteredCapital":"10",
// "ScopeBusiness":"x",
// "Type":"x"
// },
// "Domain":"x.com",
// "CorporateName":"x",
// "IncludeForeignInvestment":true,
// "PartnerBusinessLicense":"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_3610160464935869220206155558692.jpeg",
// "PartnerIdCardList":["https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_463101604649363092202061556392.jpeg"],
// "PartnerDomainCertificate":"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_4481016046493695182020615569518.jpeg",
// "PartnerPreviewOtherList":["https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_24710160464940618020206155646180.zip"]
// }
// }
// }
// task.createSign(obj,"7cbb892450174167b5c7e01we4716t51").then(d=>{ // task.createSign(obj,"7cbb892450174167b5c7e01we4716t51").then(d=>{
// console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!"); // console.log(d,"!!!!!!!!!!!!!!!!!!!!!!!!!!");
// }); // });
......
...@@ -511,7 +511,7 @@ class UtilsNeedService2 extends AppServiceBase { ...@@ -511,7 +511,7 @@ class UtilsNeedService2 extends AppServiceBase {
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
//2020-10-28 laolan start //2020-10-28 laolan start
if (result && result.status == 0 && result.data) { if (result && result.status == 0 && result.data) {
if (result.data == uappId.aliConfirmResult) { if (result.data == uappId.ali) {
var res = await self.aliclient.reqbyget({ action: "writeCommunicationLog", reqbody: { BizId: pobj.actionBody.intentionBizId, Note: pobj.actionBody.note }, apiVersion: "2019-05-08" }); var res = await self.aliclient.reqbyget({ action: "writeCommunicationLog", reqbody: { BizId: pobj.actionBody.intentionBizId, Note: pobj.actionBody.note }, apiVersion: "2019-05-08" });
console.log("ali+res", res) console.log("ali+res", res)
} }
...@@ -544,14 +544,8 @@ class UtilsNeedService2 extends AppServiceBase { ...@@ -544,14 +544,8 @@ class UtilsNeedService2 extends AppServiceBase {
return system.getResultSuccess(); return system.getResultSuccess();
} }
//2020-10-28 laolan start
async queryExpertApplyCommunicationLogs(pobj) { async queryExpertApplyCommunicationLogs(pobj) {
// if (!pobj.actionBody.intentionBizId) {
// return system.getResult(null, "actionBody.intentionBizId can not be empty,100493");
// }
// if (!pobj.actionBody.userFeedBack) {
// return system.getResult(null, "actionBody.userFeedBack can not be empty,100494");
// }
//2020-10-28 laolan start
var reqUrl = this.centerOrderUrl + "action/need/springBoard"; var reqUrl = this.centerOrderUrl + "action/need/springBoard";
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
console.log('jilu+++result++++', result) console.log('jilu+++result++++', result)
...@@ -582,16 +576,6 @@ class UtilsNeedService2 extends AppServiceBase { ...@@ -582,16 +576,6 @@ class UtilsNeedService2 extends AppServiceBase {
} }
} }
// 2020 0820 lin 新增 拉去有跟进信息的需求但 并 记录
// console.log(pobj.actionBody.intentionBizId,res.data.TotalItemNum)
// if(res.data.TotalItemNum > 0) {
// var sql = "update testneed set status=1 where channelNeedNo=:channelNeedNo"
// var paramWhere = {
// channelNeedNo: pobj.actionBody.intentionBizId
// };
// var updateRes = await this.utilsneedSve.dao.customUpdate(sql, paramWhere);
// }
// func();
if(res && res.data && res.data.result){ if(res && res.data && res.data.result){
res.data['Data'] = res.data.result res.data['Data'] = res.data.result
} }
......
...@@ -24,7 +24,15 @@ class baiduClient { ...@@ -24,7 +24,15 @@ class baiduClient {
let extime = 1800; let extime = 1800;
let canonicalHeaders = "host:"+this.baiduClientParams.host; let canonicalHeaders = "host:"+this.baiduClientParams.host;
//中间结果1:规范化请求和前缀字符串 //中间结果1:规范化请求和前缀字符串
let canonicalRequest = "POST" + "\n" + path + "\n" + "\n" + canonicalHeaders; var canonicalRequest = null
var pathParams = path.split("?");
if(pathParams && pathParams.length > 1){
canonicalRequest = "POST" + "\n" + pathParams[0] + "\n" + pathParams[1] + "\n" + canonicalHeaders;
}else{
canonicalRequest = "POST" + "\n" + path + "\n" + "\n" + canonicalHeaders;
}
// let canonicalRequest = "POST" + "\n" + path + "\n" + "\n" + canonicalHeaders;
console.log('canonicalRequest+++++++',canonicalRequest)
//authStringPrefix(前缀字符串,由除sk字段外的签名信息生成) //authStringPrefix(前缀字符串,由除sk字段外的签名信息生成)
let authStringPrefix = version+"/"+accessKey+"/"+timestamp+"/"+extime; let authStringPrefix = version+"/"+accessKey+"/"+timestamp+"/"+extime;
//中间结果2:派生签名密钥 signingKey //中间结果2:派生签名密钥 signingKey
......
...@@ -14,8 +14,8 @@ module.exports = { ...@@ -14,8 +14,8 @@ module.exports = {
"orderTotalSum", "collect", "reg", "orderCheck", "getReOrderList", "getOfficalList", "addReviewList", "opSubmitNeed", "opNeedClose", "opNeedList", "orderTotalSum", "collect", "reg", "orderCheck", "getReOrderList", "getOfficalList", "addReviewList", "opSubmitNeed", "opNeedClose", "opNeedList",
"getItemByNeedNo", "opNeedDetailByChannelNo", "getNeedListUser", "manualEvaluation", "diagnosisInfo", "check", "enterpriseInfo", "diagnosisDetail", "getItemByNeedNo", "opNeedDetailByChannelNo", "getNeedListUser", "manualEvaluation", "diagnosisInfo", "check", "enterpriseInfo", "diagnosisDetail",
"submitIcpIntention", "queryIntentionList", "confirmIcpIntention", "tmAccept", "tmStatus", "needBatchUpload", "submitIcpIntention", "queryIntentionList", "confirmIcpIntention", "tmAccept", "tmStatus", "needBatchUpload",
"ncSubmitMaterial","ncNotification","ncSubmitSolution","ncWriteCommunicationRecord","ncGetCommunicationRecord","ncCloseNeed","ncClosePlan","ncCloseOrderDelivery", "ncSubmitMaterial","ncNotification","ncSubmitSolution","ncCloseNeed","ncClosePlan",
"rtSubmitMaterial","rtNotification","rtSubmitSolution","rtWriteCommunicationRecord","rtGetCommunicationRecord","rtCloseNeed","rtClosePlan","rtCloseOrderDelivery", "rtSubmitMaterial","rtNotification","rtSubmitSolution","rtCloseNeed","rtClosePlan",
"getParamsFor360", "addOrderWeb", "getPayRecords", "getLoginInfo", "putUserMobileByVcode", "getParamsFor360", "addOrderWeb", "getPayRecords", "getLoginInfo", "putUserMobileByVcode",
"putUserPwdByMobile", "icpNotifyNew" "putUserPwdByMobile", "icpNotifyNew"
], ],
...@@ -23,8 +23,8 @@ module.exports = { ...@@ -23,8 +23,8 @@ module.exports = {
"icpOrderClose", "icpOrderClose",
"submitNeed", "paySuccess", "icpNotify", "getLoginInfo", "icpNotifyNew", "submitIcpProgramme","serviceProviderSubmitMaterial","abolishIcpProgramme", "submitNeed", "paySuccess", "icpNotify", "getLoginInfo", "icpNotifyNew", "submitIcpProgramme","serviceProviderSubmitMaterial","abolishIcpProgramme",
"submitService","serviceProviderNotification", "submitService","serviceProviderNotification",
"ncGetNeedList","ncSubmitMaterial","ncNotification","ncSubmitSolution","ncWriteCommunicationRecord","ncGetCommunicationRecord","ncCloseNeed","ncClosePlan","ncCloseOrderDelivery", "ncSubmitMaterial","ncNotification","ncSubmitSolution","ncCloseNeed","ncClosePlan",
"rtGetNeedList","rtSubmitMaterial","rtNotification","rtSubmitSolution","rtWriteCommunicationRecord","rtGetCommunicationRecord","rtCloseNeed","rtClosePlan","rtCloseOrderDelivery", "rtSubmitMaterial","rtNotification","rtSubmitSolution","rtCloseNeed","rtClosePlan",
], ],
apiSecretPathList: ["/api/icp/consultation/submit","/api/icp/feedback/submit","/api/icp/order/notify","/api/opreceive/service/create","/api/icp/order/close","/api/opreceive/service/notify","/api/icp/queueNotify/springBoard",] apiSecretPathList: ["/api/icp/consultation/submit","/api/icp/feedback/submit","/api/icp/order/notify","/api/opreceive/service/create","/api/icp/order/close","/api/opreceive/service/notify","/api/icp/queueNotify/springBoard",]
} }
......
var settings = { var settings = {
redis: { redis: {
host: "121.36.3.35", host: "39.107.234.14",
port: 8967, port: 6379,
password: "Gongsibao2018", password: "123123",
db: 4, db: 4,
}, },
database: { database: {
......
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