Commit 08a99740 by 王栋源

wdy

parent e497505a
...@@ -203,7 +203,7 @@ class CenterorderService extends AppServiceBase { ...@@ -203,7 +203,7 @@ class CenterorderService extends AppServiceBase {
/** /**
* 推送ICP交付信息至企业宝(交付系统) * 推送ICP交付信息至企业宝(交付系统)
*/ */
async pushIcpOrderDelivery2Qfb(orderNo, needsolution,status) { async pushIcpOrderDelivery2Qfb(orderNo, needsolution, status) {
// var pushObj = { // var pushObj = {
// orderNo: orderNo, // orderNo: orderNo,
// needsolution: needsolution.solutionContent // needsolution: needsolution.solutionContent
...@@ -214,7 +214,7 @@ class CenterorderService extends AppServiceBase { ...@@ -214,7 +214,7 @@ class CenterorderService extends AppServiceBase {
// return system.getResultSuccess(data); // return system.getResultSuccess(data);
} }
async getaliicpProduce(pobj){ async getaliicpProduce(pobj) {
var sobj = { var sobj = {
actionType: "getaliicpProduce", actionType: "getaliicpProduce",
// actionBody: { typeCode: itemResult.data.channelTypeCode, province: itemResult.data.province }, // actionBody: { typeCode: itemResult.data.channelTypeCode, province: itemResult.data.province },
...@@ -304,7 +304,7 @@ class CenterorderService extends AppServiceBase { ...@@ -304,7 +304,7 @@ class CenterorderService extends AppServiceBase {
city: pobj.actionBody.province, city: pobj.actionBody.province,
regType: pobj.actionBody.regType, regType: pobj.actionBody.regType,
orderNo: pobj.actionBody.channelOrder.channelOrderNo, orderNo: pobj.actionBody.channelOrder.channelOrderNo,
orderPrice: Number(pobj.actionBody.orderPrice/100) , orderPrice: Number(pobj.actionBody.orderPrice / 100),
phone: pobj.actionBody.publishMobile, phone: pobj.actionBody.publishMobile,
needId: solutiondata.data.channelNeedNo needId: solutiondata.data.channelNeedNo
}, },
...@@ -315,10 +315,11 @@ class CenterorderService extends AppServiceBase { ...@@ -315,10 +315,11 @@ class CenterorderService extends AppServiceBase {
orderNo: orderrtn.data.orderNo,//pobj.actionBody.channelOrder.channelOrderNo, orderNo: orderrtn.data.orderNo,//pobj.actionBody.channelOrder.channelOrderNo,
needsolution: solutiondata.data.solutionContent, needsolution: solutiondata.data.solutionContent,
channelNeedNo: solutiondata.data.channelNeedNo, channelNeedNo: solutiondata.data.channelNeedNo,
skuCode:data.data.payCode, channelSolutionNo: solutiondata.data.channelSolutionNo,
servicer:{ skuCode: data.data.payCode,
code:'gsb', servicer: {
name:'公司宝' code: 'gsb',
name: '公司宝'
} }
}, },
appInfo: pobj.appInfo appInfo: pobj.appInfo
......
...@@ -70,6 +70,15 @@ class QcCenterOrderService extends AppServiceBase { ...@@ -70,6 +70,15 @@ class QcCenterOrderService extends AppServiceBase {
// requestId: pobj.requestId || "" // N 请求id // requestId: pobj.requestId || "" // N 请求id
// } // }
// this.opQueuePushClientPost(pobj, this.opPushQueueUrl, reqParams); // this.opQueuePushClientPost(pobj, this.opPushQueueUrl, reqParams);
this.logCtl.info({
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key || "" : "",
requestId: pobj.requestId || "",
op: "service/impl/common/qcCenterOrderSve.js/submitIcpProgramme",
content: JSON.stringify(pobj),
resultInfo:needinfo,
optitle:"createSolution推送蜂擎获取的接口信息->aliBusiness2Delivery",
});
var reqParams = { var reqParams = {
actionBody: { actionBody: {
intentionBizId: needinfo.channelNeedNo, intentionBizId: needinfo.channelNeedNo,
......
...@@ -201,6 +201,15 @@ class UtilsNeedService extends AppServiceBase { ...@@ -201,6 +201,15 @@ class UtilsNeedService extends AppServiceBase {
pobj.actionType = "abolishIcpProgrammeByNeed" pobj.actionType = "abolishIcpProgrammeByNeed"
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);
this.logCtl.info({
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key || "" : "",
requestId: pobj.requestId || "",
op: "service/impl/utilsSve/utilsNeedSve.js/needCloseIcp",
content: JSON.stringify(pobj),
resultInfo:result,
optitle:"abolishIcpProgrammeByNeed推送蜂擎获取的接口信息->aliBusiness2Delivery",
});
if (result.status == 0) { if (result.status == 0) {
if (result.data) { if (result.data) {
pobj.actionBody.orderNo = result.data; pobj.actionBody.orderNo = result.data;
...@@ -209,16 +218,26 @@ class UtilsNeedService extends AppServiceBase { ...@@ -209,16 +218,26 @@ class UtilsNeedService extends AppServiceBase {
return system.getResultFail(-5022, "订单关闭失败"); return system.getResultFail(-5022, "订单关闭失败");
} }
} }
//推送交付系统 //推送交付系统
var reqParams = { var reqParams = {
actionBody: { actionBody: {
intentionBizId: pobj.actionBody.channelNeedNo, intentionBizId: pobj.actionBody.channelNeedNo,
status:"closeNeed" status: "closeNeed"
}, },
appInfo: pobj.appInfo appInfo: pobj.appInfo
} }
self.utilsPushSve.aliBusiness2Delivery(reqParams, "updateChanceStatus"); self.utilsPushSve.aliBusiness2Delivery(reqParams, "updateChanceStatus");
//日志记录
self.logCtl.info({
appid: pobj.appInfo ? pobj.appInfo.uapp_id || "" : "",
appkey: pobj.appInfo ? pobj.appInfo.uapp_key || "" : "",
requestId: pobj.requestId || "",
op: "service/impl/utilsSve/utilsNeedSve.js/needCloseIcp",
content: JSON.stringify(reqParams),
resultInfo: "",
optitle:"updateChanceStatus推送蜂擎获取的接口信息->aliBusiness2Delivery",
});
// 推送ali // 推送ali
var a = await self.aliclient.reqbyget({ action: "CloseIntention", reqbody: { BizId: actionBody.channelNeedNo, Note: actionBody.note }, apiVersion: "2019-05-08" }); var a = await self.aliclient.reqbyget({ action: "CloseIntention", reqbody: { BizId: actionBody.channelNeedNo, Note: actionBody.note }, apiVersion: "2019-05-08" });
console.log(a); console.log(a);
...@@ -415,7 +434,7 @@ class UtilsNeedService extends AppServiceBase { ...@@ -415,7 +434,7 @@ class UtilsNeedService extends AppServiceBase {
} }
async test(pobj) { async test(pobj) {
let res = await this.aliclient.reqbyget({ let res = await this.aliclient.reqbyget({
action: "QueryTradeIntentionUserList", reqbody: { action: "QueryTradeIntentionUserList", reqbody: {
BeginTime: pobj.actionBody.BeginTime ? pobj.actionBody.BeginTime : "", BeginTime: pobj.actionBody.BeginTime ? pobj.actionBody.BeginTime : "",
...@@ -457,7 +476,7 @@ module.exports = UtilsNeedService; ...@@ -457,7 +476,7 @@ module.exports = UtilsNeedService;
// var a=new UtilsNeedService(); // var a=new UtilsNeedService();
// a.needCloseIcp({actionBody:{channelNeedNo:20200804200124000001,note:"ceshifankui"}},{channelNeedNo:20200803095203000001,note:"ceshifankui"}); // a.needCloseIcp({actionBody:{channelNeedNo:20200804200124000001,note:"ceshifankui"}},{channelNeedNo:20200803095203000001,note:"ceshifankui"});
var a=new UtilsNeedService(); var a = new UtilsNeedService();
a.test({actionBody:{intentionBizId:"20200803095203000001",userFeedBack:true}}); a.test({ actionBody: { intentionBizId: "20200803095203000001", userFeedBack: true } });
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