Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
606ad34e
Commit
606ad34e
authored
Aug 12, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diagnosis update
parent
27f075a5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
15 deletions
+76
-15
center-channel/app/base/api/impl/zzzd/zzzd.js
+8
-1
center-channel/app/base/service/impl/utilsSve/utilsDiagnosisSve.js
+3
-1
center-channel/app/config/routes/api.js
+4
-3
center-channel/app/front/entry/public/apidoc/platform/zzzd.md
+61
-10
No files found.
center-channel/app/base/api/impl/zzzd/zzzd.js
View file @
606ad34e
...
...
@@ -17,6 +17,7 @@ class Zzzd extends WEBBase {
"phoneNumber"
:
"/gsb/api/phone_number"
,
//免费咨询
}
this
.
utilsDiagnosisSve
=
system
.
getObject
(
"service.utilsSve.utilsDiagnosisSve"
);
this
.
centerOrderUrl
=
settings
.
centerOrderUrl
();
}
/**
* 接口跳转-POST请求
...
...
@@ -120,7 +121,13 @@ class Zzzd extends WEBBase {
}
try
{
opResult
=
await
this
.
restPostUrl
(
pobj
.
actionBody
,
settings
.
zzzdUrl
()
+
this
.
zzzApi
.
recommendationBusiness
);
// console.log(`根据行业获取资质 结果` + JSON.stringify(opResult));
// 调用order创建诊断单方法,并把大数据诊断结果传过去,以及客户选择的行业分类带过去 格式 【一级分类-二级分类,】
pobj
.
actionBody
.
checkResult
=
opResult
;
pobj
.
actionBody
.
diagnosisMode
=
"zn"
;
pobj
.
actionType
=
"manualEvaluation"
var
reqUrl
=
this
.
centerOrderUrl
+
"action/diagnosis/springBoard"
;
let
res
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
console
.
log
(
res
);
}
catch
(
e
)
{
console
.
log
(
e
);
return
system
.
getResult
(
null
,
`系统错误`
+
JSON
.
stringify
(
e
));
...
...
center-channel/app/base/service/impl/utilsSve/utilsDiagnosisSve.js
View file @
606ad34e
...
...
@@ -17,6 +17,8 @@ class UtilsDiagnosisService extends AppServiceBase {
* @param {*} actionBody
*/
async
manualEvaluation
(
pobj
,
actionBody
)
{
// 诊断方式rg/只能在controller层check写zn
actionBody
.
diagnosisMode
=
"rg"
var
reqUrl
=
this
.
centerOrderUrl
+
"action/diagnosis/springBoard"
;
var
manualEvaluationResult
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
return
manualEvaluationResult
;
...
...
@@ -32,7 +34,7 @@ class UtilsDiagnosisService extends AppServiceBase {
return
diagnosisInfoResult
;
}
/**
* 2020 0811 lin 个人中心企业信息
111
* 2020 0811 lin 个人中心企业信息
* @param {*} pobj
* @param {*} actionBody
*/
...
...
center-channel/app/config/routes/api.js
View file @
606ad34e
...
...
@@ -210,8 +210,9 @@ module.exports = function (app) {
result
.
msg
=
"actionType can not be empty"
;
res
.
end
(
JSON
.
stringify
(
result
));
return
;
}
if
([
"getAppTokenByHosts"
,
"getAppTokenByAppKey"
,
"test"
,
"getIndustries"
,
"getSecondIndustries"
,
"getQualificationByIndustry"
,
"check"
,
"counselling"
].
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
}
// 2020 0812 lin 只去掉了check,因为要记录智能诊断的返回值,其他接口暂时未去掉
if
([
"getAppTokenByHosts"
,
"getAppTokenByAppKey"
,
"test"
,
"getIndustries"
,
"getSecondIndustries"
,
"getQualificationByIndustry"
,
"counselling"
].
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
req
.
body
.
actionBody
.
appHosts
=
req
.
host
;
next
();
return
;
...
...
@@ -244,7 +245,7 @@ module.exports = function (app) {
"submitProgramme"
,
"getProgrammeListByUser"
,
"getProgrammeInfoByNeedNo"
,
"abolishProgramme"
,
"getAliPayInfo"
,
"getPaidLogoListByUser"
,
"getCollectibleLogoListByUser"
,
"collectLogo"
,
"getLogoMaterial"
,
"cancelCollectLogo"
,
"icpNotify"
,
"createName"
,
"getNameDetail"
,
"orderConfirm"
,
"orderTotalSum"
,
"collect"
,
"reg"
,
"orderCheck"
,
"getReOrderList"
,
"getOfficalList"
,
"addReviewList"
,
"opSubmitNeed"
,
"opNeedClose"
,
"opNeedList"
,
"opNeedDetailByChannelNo"
,
"manualEvaluation"
"manualEvaluation"
,
"diagnosisInfo"
,
"check"
,
"enterpriseInfo"
];
if
(
lst
.
indexOf
(
req
.
body
.
actionType
)
>=
0
)
{
var
userpin
=
req
.
headers
[
"userpin"
]
||
""
;
...
...
center-channel/app/front/entry/public/apidoc/platform/zzzd.md
View file @
606ad34e
...
...
@@ -48,6 +48,9 @@
{
"enterprise"
:
"企业名称"
,
"mobile"
:
"联系电话"
,
"corporateType"
:
"店铺类型 电商诊断:qi旗舰店qjd/专卖店zmd/直营店zyd,直播诊断:企业qy/个体工商户gtgsh/民办非企业mbfqy/法律服务flfw"
,
"diagnosisType"
:
"诊断类型 直播/电商 zb/ds"
,
"mainClass"
:
[
"一级-二级"
,
"一级-二级"
]
"主营类目"
,
基础资质
如果非必填的资质未上传,则
picUrl
给
""
即可
"qualificationsPic"
:[{
"picName"
:
"营业执照"
,
...
...
@@ -65,7 +68,7 @@
"picUrl"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_958415948076283422020615.jpg"
}],
行业资质
"
brand
Pic"
:[{
"
industry
Pic"
:[{
"picName"
:
"营业执照"
,
"picUrl"
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com//zc_958415948076283422020615.jpg"
},{
...
...
@@ -78,11 +81,10 @@
#### 返回结果
```
javascript
{
"status"
:
-
1
,
"msg"
:
"
审核不通过,原因:营业执照分析失败
"
,
"status"
:
-
5005
,
"msg"
:
"
诊断类型不能为空
"
,
"data"
:
null
,
"bizmsg"
:
"empty"
,
"requestId"
:
"7ac5b432225d43c58e78dcc630518fdd"
"requestId"
:
"4a19931c4f9e4d2c8c0a203407de46f5"
}
{
"status"
:
0
,
...
...
@@ -119,8 +121,30 @@
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"837ea5c284074d568fa198f7f259088a"
"data"
:
{
"count"
:
11
,
"rows"
:
[
{
"diagnosis_no"
:
"N202008121159HM3GJ89"
,
"corporate_name"
:
"1"
,
"publish_mobile"
:
"14444444444"
,
"diagnosis_type_name"
:
"直播"
,
"diagnosis_mode_name"
:
"智能评估"
,
"diagnosis_result_name"
:
"未通过"
,
"updated_at"
:
"2020-08-12T03:59:35.000Z"
},
{
"diagnosis_no"
:
"N202008121159HM3GJ89"
,
"corporate_name"
:
"1"
,
"publish_mobile"
:
"14444444444"
,
"diagnosis_type_name"
:
"直播"
,
"diagnosis_mode_name"
:
"智能评估"
,
"diagnosis_result_name"
:
"未通过"
,
"updated_at"
:
"2020-08-12T03:59:35.000Z"
},
]
},
"requestId"
:
"6934d3c04d744bfa900c9c929b08dd7b"
}
```
...
...
@@ -137,11 +161,37 @@
#### 返回结果
```
javascript
// 等待填写
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"837ea5c284074d568fa198f7f259088a"
"data"
:
{
"id"
:
10
,
"uapp_id"
:
22
,
"channel_user_id"
:
"13911391996"
,
"diagnosis_no"
:
"N2020081211076qlz86H"
,
"corporate_name"
:
"林氏集团"
,
"publish_name"
:
null
,
"publish_mobile"
:
"13911391996"
,
"corporate_type"
:
"qjd"
,
"corporate_type_name"
:
"旗舰店"
,
"diagnosis_type"
:
"zb"
,
"diagnosis_type_name"
:
"直播"
,
"diagnosis_mode"
:
"rg"
,
"diagnosis_mode_name"
:
"人工评估"
,
"diagnosis_result"
:
"wtg"
,
"diagnosis_result_name"
:
"未通过"
,
"diagnosis_result_data"
:
null
,
"status_name"
:
"已完成"
,
"qualifications_pic"
:
null
,
"brand_pic"
:
null
,
"industry_pic"
:
null
,
"notes"
:
null
,
"status"
:
"ywc"
,
"created_at"
:
"2020-08-12T03:07:27.000Z"
,
"updated_at"
:
"2020-08-12T05:56:09.000Z"
,
"deleted_at"
:
null
,
"version"
:
0
},
"requestId"
:
"2208af94126f4c168659947dc8bd4feb"
}
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment