Commit 04122c30 by wkliang

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

parents a52a0986 c02855c4
......@@ -35,6 +35,20 @@ class Zzzd extends WEBBase {
var result = await this.opActionProcess(pobj, pobj.actionType, req);
return result;
}
checkFilter(arr) {
if(!arr) {
return [];
}
return arr.filter((obj) => {
obj.picUrl = "";
obj.picName = obj.name;
delete obj.id;
delete obj.name;
return obj
});
}
async opActionProcess (pobj, action_type, req) {
pobj.requestId = req.requestId;
var opResult = null;
......@@ -123,10 +137,16 @@ class Zzzd extends WEBBase {
opResult =await this.restPostUrl(pobj.actionBody,settings.zzzdUrl()+this.zzzApi.recommendationBusiness);
// 调用order创建诊断单方法,并把大数据诊断结果传过去,以及客户选择的行业分类带过去 格式 【一级分类-二级分类,】
pobj.actionBody.checkResult = opResult;
pobj.actionBody.qualificationsPic = this.checkFilter(pobj.actionBody.data.base);// 记录智能诊断的资质信息
pobj.actionBody.brandPic = this.checkFilter(pobj.actionBody.data.brand);
pobj.actionBody.industryPic = this.checkFilter(pobj.actionBody.data.industry);
pobj.actionBody.diagnosisMode = "zn";
pobj.actionType = "manualEvaluation"
var reqUrl = this.centerOrderUrl + "action/diagnosis/springBoard";
let res = await this.restPostUrl(pobj,reqUrl);
if(res.status == 0) {
opResult.data.diagnosis_no = res.data.diagnosis_no
}
console.log(res);
}catch (e) {
console.log(e);
......
......@@ -16,7 +16,7 @@
| ---- | ---- | ---- | ---- |
|userName | Y | string | 用户名称 |
|area | N | string | 地区名称 |
|description | Y | string | 备注 |
|description | Y | string | 备注/抖音用做需求类型 |
|mobile | Y | string | 用户电话 |
|type | N | int | 产品类型 |
......@@ -136,8 +136,8 @@
"followContent": null,
"productOneType_id": null,
"productType_id": null,
"notes": null,
"disposeNotes": null,
"notes": null,// 抖音用做需求类型
"disposeNotes": null,// 备注
"statusName": "未推送",// 需求状态
"status": "wts",// 需求状态 wts未推送,yts已推送,ygj已跟进,ycd已成单,ygb已关闭 注意这里原型的需求状态不支持,按文档来
"city": "北京市-北京市-大兴区",
......@@ -231,7 +231,7 @@
"publishContent": "公司注册 - ",// 需求内容
"publishName": "",// 联系人/公司名称
"publishMobile": "13911391996",// 联系电话
"notes": null,
"notes": null,// 备注/抖音用做需求类型
"followContent": null,
"disposeNotes": null,
"status": "ygb",// 需求状态 wts未推送,yts已推送,ygj已跟进,ycd已成单,ygb已关闭 注意这里原型的需求状态不支持,按文档来
......
......@@ -210,16 +210,22 @@
#### 返回结果
```javascript
// 等待填写
// 注意!
// 智能诊断结果 快照 注意这里 人工诊断目前没有推荐商品
// 主体资质不支持 写死
{
"status": 0,
"msg": "success",
"data": {
"diagnosis_no": "N2020081309473jfNmSn",
"corporate_name": "1",// 公司名称
"diagnosis_type_name": "直播",// 诊断类型名字
"publish_mobile": "14444444444",// 联系电话
"main_class": "[\"服饰-女装/女士精品\"]",// 主营类目
"corporate_type_name": "旗舰店",// 店铺类型名字
"diagnosis_result": "诊断结果 tg/wtg/rgshz"// 于diagnosis_result_name是对应的 你想用哪个用哪个
"diagnosis_result_name": "未通过",// 智能诊断结果 ispass
"diagnosis_result_data": { // 智能诊断结果 快照 注意这里 人工诊断目前没有推荐商品
"diagnosis_result_data": { // 智能诊断结果
"msg": "success",
"data": {
"isPass": false,
......@@ -234,6 +240,16 @@
},
"status": 0
}
// 以下为您还需办理资质
"needQualifications_pic": [],// 基础资质json {}
"needBrand_pic": [// 品牌资质json {}
{
"picUrl": "",
"picName": "商标注册证或商标注册申请受理通知书",
"isChoice": true
}
],
"needIndustry_pic": []// 行业资质json {}
},
"requestId": "665be1d2e32b4c01b8390ce4e8e7b1ad"
}
......
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