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
dad1e514
Commit
dad1e514
authored
Aug 08, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-channel' of gitlab.gongsibao.com:jiangyong/zhichan into center-channel
parents
69d7caa3
3b2cf2a3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
2 deletions
+68
-2
center-channel/app/base/api/impl/zzzd/zzzd.js
+23
-0
center-channel/app/config/settings.js
+4
-0
center-channel/app/front/entry/public/apidoc/README.md
+4
-2
center-channel/app/front/entry/public/apidoc/platform/zzzd.md
+37
-0
No files found.
center-channel/app/base/api/impl/zzzd/zzzd.js
View file @
dad1e514
...
...
@@ -2,6 +2,7 @@ var WEBBase = require("../../web.base");
var
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
axios
=
require
(
"axios"
);
const
{
getResult
}
=
require
(
"../../../system"
);
class
Zzzd
extends
WEBBase
{
constructor
()
{
...
...
@@ -142,6 +143,28 @@ class Zzzd extends WEBBase {
}
break
;
case
"uploadBusiness"
:
if
(
!
pobj
.
actionBody
.
picUrl
)
{
return
system
.
getResult
(
null
,
`图片地址不能为空`
);
}
if
(
!
pobj
.
actionBody
.
identityCardNo
)
{
return
system
.
getResult
(
null
,
`身份证号不能为空`
);
}
var
reqParam
=
{
bl_url
:
pobj
.
actionBody
.
picUrl
}
// 分析营业执照
var
result
=
await
this
.
restPostUrl
(
reqParam
,
settings
.
businessDistinguishUrl
()
+
"gsb/businessLicenseUrlApi"
);
if
(
result
.
status
!=
1
)
{
return
getResult
(
null
,
result
.
msg
)
}
if
(
result
.
data
.
reg_location
==
"无"
)
{
return
system
.
getResult
(
null
,
"审核不通过,原因:营业执照分析失败"
);
}
// 判断 如果四要素有空 则 不请求 并返回营业执照解析失败
// 请求四要素验证
// var businessDistinguishResult = await this.restPostUrl(reqParam, settings.businessDistinguishUrl()+"gsb/businessLicenseUrlApi");
// 返回四要素请求结果
return
system
.
getResultSuccess
();
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
center-channel/app/config/settings.js
View file @
dad1e514
...
...
@@ -94,6 +94,10 @@ var settings = {
return
"http://qualitydoctor-service/"
;
}
},
// 2020 0807 lin 新增 营业执照识别请求地址
businessDistinguishUrl
:
function
()
{
return
"http://43.247.184.92:15504/"
},
centerChannelUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
return
"http://60.205.209.94:4012/"
...
...
center-channel/app/front/entry/public/apidoc/README.md
View file @
dad1e514
...
...
@@ -53,4 +53,7 @@
1
[
公司起名相关接口
](
doc/api/platform/companyNaming.md
)
## 17. 商标驳回复审相关接口
1
[
商标驳回复审相关接口
](
doc/api/platform/trademarkReview.md
)
\ No newline at end of file
1
[
商标驳回复审相关接口
](
doc/api/platform/trademarkReview.md
)
## 17. 资质诊断相关接口
1
[
商标驳回复审相关接口
](
doc/api/platform/zzzd.md
)
center-channel/app/front/entry/public/apidoc/platform/zzzd.md
0 → 100644
View file @
dad1e514
<a
name=
"menu"
href=
"/doc"
>
返回主目录
</a>
1.
[
诊断
](
#zd
)
## **<a name="zd"> 诊断</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/opreceive/need/springBoard
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:uploadBusiness
```
javascript
{
picUrl
:
"https://gsb-zc.oss-cn-beijing.aliyuncs.com/zc_word2picb2bc98b9fc564ef2a1f4b3cbe9352f39.jpg"
,
//营业执照地址
identityCardNo
:
"1102241996xxxxxxxxxxx"
,
//身份证号
}
```
#### 返回结果
```
javascript
不通过
{
"status"
:
-
1
,
"msg"
:
"审核不通过,原因:营业执照分析失败"
,
"data"
:
null
,
"bizmsg"
:
"empty"
,
"requestId"
:
"7ac5b432225d43c58e78dcc630518fdd"
}
通过
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
null
,
"requestId"
:
"837ea5c284074d568fa198f7f259088a"
}
```
\ 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