Commit da2d0454 by 宋毅

注释去除

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