Commit 1e341aa5 by wkliang

Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel

parents 213593b8 73d292ec
...@@ -16,6 +16,7 @@ class Zzzd extends WEBBase { ...@@ -16,6 +16,7 @@ class Zzzd extends WEBBase {
"recommendationBusiness":"/gsb/api/recommendation_business", //立即查看结果 "recommendationBusiness":"/gsb/api/recommendation_business", //立即查看结果
"phoneNumber":"/gsb/api/phone_number", //免费咨询 "phoneNumber":"/gsb/api/phone_number", //免费咨询
} }
this.utilsDiagnosisSve = system.getObject("service.utilsSve.utilsDiagnosisSve");
} }
/** /**
* 接口跳转-POST请求 * 接口跳转-POST请求
...@@ -194,6 +195,16 @@ class Zzzd extends WEBBase { ...@@ -194,6 +195,16 @@ class Zzzd extends WEBBase {
// 返回四要素请求结果 // 返回四要素请求结果
return system.getResultSuccess(); return system.getResultSuccess();
// 2020 0811 lin 新增 诊断宝相关
case "manualEvaluation":
opResult = await this.utilsDiagnosisSve.manualEvaluation(pobj, pobj.actionBody);
break;
case "diagnosisInfo":
opResult = await this.utilsDiagnosisSve.diagnosisInfo(pobj, pobj.actionBody);
break;
case "enterpriseInfo":
opResult = await this.utilsDiagnosisSve.enterpriseInfo(pobj, pobj.actionBody);
break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
var system = require("../../../system");
var settings = require("../../../../config/settings");
const AppServiceBase = require("../../app.base");
const fs = require("fs");
const { json } = require("sequelize");
// 2020 0807 lin 新增 诊断宝相关
// 接口文档地址:
class UtilsDiagnosisService extends AppServiceBase {
constructor() {
super();
this.centerOrderUrl = settings.centerOrderUrl();
}
/**
* 2020 0811 lin 诊断宝人工评估-开始入驻评估
* @param {*} pobj
* @param {*} actionBody
*/
async manualEvaluation(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var manualEvaluationResult =await this.restPostUrl(pobj,reqUrl);
return manualEvaluationResult;
}
/**
* 2020 0811 lin 个人中心-诊断列表
* @param {*} pobj
* @param {*} actionBody
*/
async diagnosisInfo(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var diagnosisInfoResult =await this.restPostUrl(pobj,reqUrl);
return diagnosisInfoResult;
}
/**
* 2020 0811 lin 个人中心企业信息
* @param {*} pobj
* @param {*} actionBody
*/
async enterpriseInfo(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var enterpriseInfoResult =await this.restPostUrl(pobj,reqUrl);
return enterpriseInfoResult;
}
/**
* 2020 0811 lin 需求列表
* @param {*} pobj
* @param {*} actionBody
*/
async needInfo(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var enterpriseInfoResult =await this.restPostUrl(pobj,reqUrl);
return enterpriseInfoResult;
}
/**
* 2020 0811 lin 需求详情
* @param {*} pobj
* @param {*} actionBody
*/
async needDetail(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
var enterpriseInfoResult =await this.restPostUrl(pobj,reqUrl);
return enterpriseInfoResult;
}
}
module.exports = UtilsDiagnosisService;
...@@ -243,7 +243,8 @@ module.exports = function (app) { ...@@ -243,7 +243,8 @@ module.exports = function (app) {
"getOrderDeliveryFlowInfo", "getOrderDeliveryFlowList", "getOrderLogInfo", "updateContacts", "updateTmOrder", "delOrder", "getOrderDeliveryFlowInfo", "getOrderDeliveryFlowList", "getOrderLogInfo", "updateContacts", "updateTmOrder", "delOrder",
"submitProgramme", "getProgrammeListByUser", "getProgrammeInfoByNeedNo", "abolishProgramme", "getAliPayInfo", "submitProgramme", "getProgrammeListByUser", "getProgrammeInfoByNeedNo", "abolishProgramme", "getAliPayInfo",
"getPaidLogoListByUser","getCollectibleLogoListByUser","collectLogo","getLogoMaterial","cancelCollectLogo","icpNotify","createName","getNameDetail","orderConfirm", "getPaidLogoListByUser","getCollectibleLogoListByUser","collectLogo","getLogoMaterial","cancelCollectLogo","icpNotify","createName","getNameDetail","orderConfirm",
"orderTotalSum", "collect", "reg", "orderCheck","getReOrderList","getOfficalList","addReviewList","opSubmitNeed","opNeedClose","opNeedList","opNeedDetailByChannelNo" "orderTotalSum", "collect", "reg", "orderCheck","getReOrderList","getOfficalList","addReviewList","opSubmitNeed","opNeedClose","opNeedList","opNeedDetailByChannelNo",
"manualEvaluation"
]; ];
if (lst.indexOf(req.body.actionType) >= 0) { if (lst.indexOf(req.body.actionType) >= 0) {
var userpin = req.headers["userpin"] || ""; var userpin = req.headers["userpin"] || "";
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
} }
``` ```
## **<a name="manualEvaluation"> 人工评估-开始入评估</a>** ## **<a name="manualEvaluation"> 人工评估-开始入评估</a>**
[返回到目录](#menu) [返回到目录](#menu)
##### URL ##### URL
[/web/zzzd/zzzd/springBoard] [/web/zzzd/zzzd/springBoard]
......
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