Commit da2d0454 by 宋毅

注释去除

parent 6bdce20b
......@@ -62,7 +62,7 @@ class GatewaypushlogService extends ServiceBase {
}
}
}
return system.getResultSuccess();
return system.getResultSuccess(null);
} catch (error) {
this.dingClient.gatewayPushError({message: "Exception", api: "center-channel/taskAliIcapi", error})
......@@ -79,13 +79,16 @@ class GatewaypushlogService extends ServiceBase {
return system.getResult(null, "接口对应的interface_method方法解析有误");
}
let params = [JSON.parse(item.requestjson)];
console.log("params..............................................", JSON.stringify(params))
// console.log("params..............................................", JSON.stringify(params))
let doRes = await invokeObj[item.interface_method].apply(invokeObj, params);
console.log("newTaskHandle..............................................", JSON.stringify(doRes))
// console.log("newTaskHandle..............................................", JSON.stringify(doRes))
if (doRes.status == 0) {
item.pushStatus = "yts";
this.update(item);
} else {
item.error = JSON.stringify(doRes);
item.pushtimes += 1;
}
this.update(item);
return doRes;
}
......
......@@ -9,7 +9,7 @@ class IcpNeedService extends AppServiceBase {
}
async submitNeed(pobj) {
console.log("pobj+++++++++++++++++++++++++", JSON.stringify(pobj))
// console.log("pobj+++++++++++++++++++++++++", JSON.stringify(pobj))
if (!pobj.intentionBizId) {
return system.getResult(null, "actionBody.intentionBizId can not be empty,6000001");
}
......@@ -99,7 +99,7 @@ class IcpNeedService extends AppServiceBase {
level: "A"
}
}
console.log("submitNeed--------------------------submitNeedParams----", JSON.stringify(submitNeedParams));
// console.log("submitNeed--------------------------submitNeedParams----", JSON.stringify(submitNeedParams));
let reqUrl = settings.centerOrderUrl() + "action/need/springBoard";
let result = await this.restPostUrl(submitNeedParams, reqUrl);
if (result.status == 0) {
......
......@@ -36,7 +36,7 @@ class IcpOrderService extends AppServiceBase {
if (productItem.status != 0) {
return system.getResultFail(-5010, "产品查询失败,6100002");
}
console.log("productItem......................", JSON.stringify(productItem))
// console.log("productItem......................", JSON.stringify(productItem))
pobj.userInfo = {channel_userid: pobj.userName || pobj.phone, mobile: pobj.phone || pobj.mobile}
pobj.actionBody = {
......@@ -58,7 +58,7 @@ class IcpOrderService extends AppServiceBase {
}
}
let orderItem = await this.utilsOrderSve.addOrder(pobj, pobj.actionBody);
console.log("orderItem.........................................................", JSON.stringify(orderItem))
// console.log("orderItem.........................................................", JSON.stringify(orderItem))
if (orderItem.status != 0 && orderItem.status != -1) {
return system.getResultFail(-5010, "订单创建失败,6100003");
}
......@@ -69,7 +69,7 @@ class IcpOrderService extends AppServiceBase {
pobj.actionBody.companyName = pobj.CompanyName || '';
pobj.actionBody.channelSolutionNo = pobj.actionBody.channelOrder.channelOrderNo;
pobj.actionBody.channelSolutionNo = pobj.actionBody.channelOrder.channelOrderNo;
console.log("receiveSolutionPayInfoNew..............................pobj........................", JSON.stringify(pobj))
// console.log("receiveSolutionPayInfoNew..............................pobj........................", JSON.stringify(pobj))
pobj.actionType = "receiveSolutionPayInfoNew";
let url = settings.centerOrderUrl() + "action/icapi/springBoard";
let solutionRes = await this.execClient.execPost(pobj, url);
......@@ -130,7 +130,7 @@ class IcpOrderService extends AppServiceBase {
},
appInfo: pobj.appInfo
}
console.log("yfObj......................................................", JSON.stringify(yfObj))
// console.log("yfObj......................................................", JSON.stringify(yfObj))
let yunfuPushRes = await this.utilsPushSve.business2Channel(yfObj, "pushOrderICPBusinessNew");
let deliveryObj = {
actionBody: {
......@@ -160,7 +160,7 @@ class IcpOrderService extends AppServiceBase {
}
}
if (pobj.actionBody.isDirectBuy && pobj.actionBody.isDirectBuy == 1) {
console.log("deliveryObj......................................................", JSON.stringify(deliveryObj))
// console.log("deliveryObj......................................................", JSON.stringify(deliveryObj))
this.utilsPushSve.business2Channel(deliveryObj, "pushDeliveryOrder");
}
return system.getResultSuccess(null);
......@@ -174,16 +174,10 @@ class IcpOrderService extends AppServiceBase {
pobj.actionType = "icpOrderClose";
let url = settings.centerOrderUrl() + "action/qcapi/springBoard";
let rtn = await this.restPostUrl(pobj, url);
console.log("rtn.....................", rtn)
// console.log("rtn.....................", rtn)
if (rtn.status != 0 || !rtn.data) {
return system.getResultFail(-5010, "订单关闭失败,6100006");
}
// if (rtn.status == 0 && rtn.data) {
// pobj.actionType = "channeldelOrder";
// let orderRes = await this.utilsOrderSve.delOrder(pobj, pobj.actionBody);
// if (orderRes.status < 0) {
// return system.getResultFail(-5022, "订单关闭失败,6100007");
// }
let tmpObj = {
actionBody: {
orderNo: rtn.data.orderNo,
......@@ -206,5 +200,4 @@ class IcpOrderService extends AppServiceBase {
}
}
module
.exports = IcpOrderService;
\ No newline at end of file
module.exports = IcpOrderService;
\ No newline at end of file
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