Commit f2f11dc2 by 宋毅

tj

parent a8dc991e
...@@ -4,7 +4,7 @@ var settings = require("../../../../config/settings"); ...@@ -4,7 +4,7 @@ var settings = require("../../../../config/settings");
class QcAPI extends APIBase { class QcAPI extends APIBase {
constructor() { constructor() {
super(); super();
this.centerorderSve = system.getObject("service.common.qcCenterOrderSve"); this.qcCenterOrderSve = system.getObject("service.common.qcCenterOrderSve");
} }
/** /**
* 接口跳转-POST请求 * 接口跳转-POST请求
...@@ -23,70 +23,70 @@ class QcAPI extends APIBase { ...@@ -23,70 +23,70 @@ class QcAPI extends APIBase {
var opResult = null; var opResult = null;
switch (action_type) { switch (action_type) {
case "getNeedSolutionDetailByUser"://获取方案详情 case "getNeedSolutionDetailByUser"://获取方案详情
opResult = await this.centerorderSve.reqCenterOrderApi(pobj, "action/qcapi/springBoard"); opResult = await this.qcCenterOrderSve.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
break; break;
case "submitIcpProgramme"://icp方案提交 case "submitIcpProgramme"://icp方案提交
opResult = await this.centerorderSve.submitIcpProgramme(pobj); opResult = await this.qcCenterOrderSve.submitIcpProgramme(pobj);
break; break;
case "receiveProgrammeNo"://接收渠道方案号(测试) case "receiveProgrammeNo"://接收渠道方案号(测试)
opResult = await this.centerorderSve.reqCenterOrderApi(pobj); opResult = await this.qcCenterOrderSve.reqCenterOrderApi(pobj);
break; break;
// case "submitIcpMaterial"://icp材料提交 // case "submitIcpMaterial"://icp材料提交
// opResult = await this.centerorderSve.submitIcpMaterial(pobj); // opResult = await this.qcCenterOrderSve.submitIcpMaterial(pobj);
// break; // break;
// case "acceptIcpPartnerNotification"://icp通知状态变更 // case "acceptIcpPartnerNotification"://icp通知状态变更
// opResult = await this.centerorderSve.acceptIcpPartnerNotification(pobj); // opResult = await this.qcCenterOrderSve.acceptIcpPartnerNotification(pobj);
// break; // break;
case "abolishIcpProgramme"://服务商icp方案关闭 case "abolishIcpProgramme"://服务商icp方案关闭
opResult = await this.centerorderSve.abolishIcpProgramme(pobj); opResult = await this.qcCenterOrderSve.abolishIcpProgramme(pobj);
break; break;
case "getProgrammeInfoByChannelNeedNo"://获取需求方案列表 case "getProgrammeInfoByChannelNeedNo"://获取需求方案列表
opResult = await this.centerorderSve.reqCenterOrderApi(pobj, "action/qcapi/springBoard"); opResult = await this.qcCenterOrderSve.reqCenterOrderApi(pobj, "action/qcapi/springBoard");
break; break;
case "serviceProviderSubmitMaterial"://交付商提交材料信息 case "serviceProviderSubmitMaterial"://交付商提交材料信息
opResult = await this.centerorderSve.serviceProviderSubmitMaterial(pobj); opResult = await this.qcCenterOrderSve.serviceProviderSubmitMaterial(pobj);
break; break;
case "serviceProviderNotification"://交付商通知状态变更 case "serviceProviderNotification"://交付商通知状态变更
opResult = await this.centerorderSve.serviceProviderNotification(pobj); opResult = await this.qcCenterOrderSve.serviceProviderNotification(pobj);
break; break;
case "closeOrderDelivery"://交付商关闭交付单 case "closeOrderDelivery"://交付商关闭交付单
opResult = await this.centerorderSve.closeOrderDelivery(pobj); opResult = await this.qcCenterOrderSve.closeOrderDelivery(pobj);
break; break;
// --------- 文网文 --------- // --------- 文网文 ---------
case "serviceSubmitOption"://服务商提交服务操作(文网文)2020-9-26 case "serviceSubmitOption"://服务商提交服务操作(文网文)2020-9-26
opResult = await this.centerorderSve.serviceSubmitOption(pobj); opResult = await this.qcCenterOrderSve.serviceSubmitOption(pobj);
break; break;
case "submitWangwenSolution"://提交方案(文网文)2020-9-26 case "submitWangwenSolution"://提交方案(文网文)2020-9-26
opResult = await this.centerorderSve.submitWangwenSolution(pobj); opResult = await this.qcCenterOrderSve.submitWangwenSolution(pobj);
break; break;
case "closeNeed"://关闭需求(文网文)2020-9-28 case "closeNeed"://关闭需求(文网文)2020-9-28
opResult = await this.centerorderSve.closeNeed(pobj); opResult = await this.qcCenterOrderSve.closeNeed(pobj);
break; break;
case "recordLog"://提交沟通记录(文网文)2020-9-28 case "recordLog"://提交沟通记录(文网文)2020-9-28
opResult = await this.centerorderSve.recordLog(pobj); opResult = await this.qcCenterOrderSve.recordLog(pobj);
break; break;
case "recordLogList"://查询沟通记录(文网文)2020-9-29 case "recordLogList"://查询沟通记录(文网文)2020-9-29
opResult = await this.centerorderSve.recordLogList(pobj); opResult = await this.qcCenterOrderSve.recordLogList(pobj);
break; break;
// --------- 食品 --------- // --------- 食品 ---------
case "foodServiceSubmitOption"://服务商提交服务操作(文网文)2020-9-26 case "foodServiceSubmitOption"://服务商提交服务操作(文网文)2020-9-26
opResult = await this.centerorderSve.foodServiceSubmitOption(pobj); opResult = await this.qcCenterOrderSve.foodServiceSubmitOption(pobj);
break; break;
case "submitFoodSolution"://提交方案(文网文)2020-9-26 case "submitFoodSolution"://提交方案(文网文)2020-9-26
opResult = await this.centerorderSve.submitFoodSolution(pobj); opResult = await this.qcCenterOrderSve.submitFoodSolution(pobj);
break; break;
case "foodCloseNeed"://关闭需求(文网文)2020-9-28 case "foodCloseNeed"://关闭需求(文网文)2020-9-28
opResult = await this.centerorderSve.foodCloseNeed(pobj); opResult = await this.qcCenterOrderSve.foodCloseNeed(pobj);
break; break;
case "foodRecordLog"://提交沟通记录(文网文)2020-9-28 case "foodRecordLog"://提交沟通记录(文网文)2020-9-28
opResult = await this.centerorderSve.foodRecordLog(pobj); opResult = await this.qcCenterOrderSve.foodRecordLog(pobj);
break; break;
case "foodRecordLogList"://查询沟通记录(文网文)2020-9-29 case "foodRecordLogList"://查询沟通记录(文网文)2020-9-29
opResult = await this.centerorderSve.foodRecordLogList(pobj); opResult = await this.qcCenterOrderSve.foodRecordLogList(pobj);
break; break;
default: default:
......
...@@ -660,8 +660,8 @@ async foodRecordLogList(pobj) { ...@@ -660,8 +660,8 @@ async foodRecordLogList(pobj) {
return system.getResult(null, "interface_params can not be empty,100400"); return system.getResult(null, "interface_params can not be empty,100400");
} }
let interface_params_info = JSON.parse(pobj.interface_params); let interface_params_info = JSON.parse(pobj.interface_params);
if (!interface_params_info || !interface_params_info.pushUrl || !interface_params_info.action || interface_params_info.apiVersion) { if (!interface_params_info || !interface_params_info.action || interface_params_info.apiVersion) {
return system.getResult(null, "interface_params(pushUrl、action、apiVersion) can not be empty,100430"); return system.getResult(null, "interface_params(action、apiVersion) can not be empty,100430");
} }
let pushObj = { let pushObj = {
BizId: pobj.pushObj.BizId, BizId: pobj.pushObj.BizId,
......
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