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
d93aa222
Commit
d93aa222
authored
Aug 07, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zzzd update
parent
e6440823
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
center-channel/app/base/api/impl/zzzd/zzzd.js
+21
-0
center-channel/app/config/settings.js
+4
-0
No files found.
center-channel/app/base/api/impl/zzzd/zzzd.js
View file @
d93aa222
...
@@ -2,6 +2,7 @@ var WEBBase = require("../../web.base");
...
@@ -2,6 +2,7 @@ var WEBBase = require("../../web.base");
var
system
=
require
(
"../../../system"
);
var
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
var
settings
=
require
(
"../../../../config/settings"
);
const
axios
=
require
(
"axios"
);
const
axios
=
require
(
"axios"
);
const
{
getResult
}
=
require
(
"../../../system"
);
class
Zzzd
extends
WEBBase
{
class
Zzzd
extends
WEBBase
{
constructor
()
{
constructor
()
{
...
@@ -142,6 +143,26 @@ class Zzzd extends WEBBase {
...
@@ -142,6 +143,26 @@ class Zzzd extends WEBBase {
}
}
break
;
break
;
case
"uploadBusiness"
:
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"
);
console
.
log
(
result
);
if
(
result
.
status
!=
1
)
{
return
getResult
(
null
,
result
.
msg
)
}
// 判断 如果四要素有空 则 不请求;返回营业执照解析失败
// 请求四要素验证
// var businessDistinguishResult = await this.restPostUrl(reqParam, settings.businessDistinguishUrl()+"gsb/businessLicenseUrlApi");
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
center-channel/app/config/settings.js
View file @
d93aa222
...
@@ -94,6 +94,10 @@ var settings = {
...
@@ -94,6 +94,10 @@ var settings = {
return
"http://qualitydoctor-service/"
;
return
"http://qualitydoctor-service/"
;
}
}
},
},
// 2020 0807 lin 新增 营业执照识别请求地址
businessDistinguishUrl
:
function
()
{
return
"http://43.247.184.92:15504/"
},
centerChannelUrl
:
function
()
{
centerChannelUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
if
(
this
.
env
==
"dev"
)
{
return
"http://60.205.209.94:4012/"
return
"http://60.205.209.94:4012/"
...
...
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