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
d1ce6b6c
Commit
d1ce6b6c
authored
Jan 14, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
86d9eeff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
14 deletions
+26
-14
bpo-web/app/base/service/impl/econtractSve.js
+26
-14
No files found.
bpo-web/app/base/service/impl/econtractSve.js
View file @
d1ce6b6c
...
@@ -20,6 +20,9 @@ class EcontractService extends ServiceBase {
...
@@ -20,6 +20,9 @@ class EcontractService extends ServiceBase {
this
.
emessageDao
=
system
.
getObject
(
"db.emessageDao"
);
this
.
emessageDao
=
system
.
getObject
(
"db.emessageDao"
);
this
.
ecompanybusiDao
=
system
.
getObject
(
"db.ecompanybusiDao"
);
this
.
ecompanybusiDao
=
system
.
getObject
(
"db.ecompanybusiDao"
);
this
.
userDao
=
system
.
getObject
(
"db.userDao"
);
this
.
userDao
=
system
.
getObject
(
"db.userDao"
);
this
.
bankthreelogDao
=
system
.
getObject
(
"db.bankthreelogDao"
);
this
.
esealSve
=
system
.
getObject
(
"service.esealSve"
);
this
.
esealSve
=
system
.
getObject
(
"service.esealSve"
);
this
.
ejobapplySve
=
system
.
getObject
(
"service.ejobapplySve"
);
this
.
ejobapplySve
=
system
.
getObject
(
"service.ejobapplySve"
);
...
@@ -1289,20 +1292,29 @@ class EcontractService extends ServiceBase {
...
@@ -1289,20 +1292,29 @@ class EcontractService extends ServiceBase {
// e签宝流程
// e签宝流程
if
(
isNeedCreate
)
{
if
(
isNeedCreate
)
{
var
bankthreeParams
=
{
let
banklog
=
await
this
.
bankthreelogDao
.
findOne
({
name
:
eaccount
.
userName
,
userName
:
eaccount
.
userName
,
idno
:
eaccount
.
personsSign
,
userIdNo
:
eaccount
.
personsSign
,
cardno
:
eaccount
.
bankno
userBankNo
:
eaccount
.
bankno
,
};
result
:
1
,
var
threeResult
=
await
this
.
utilesignbaoSve
.
bankthree
(
bankthreeParams
,
"bankinfoAuth"
);
});
// {"code":-110,"message":"手机号格式错误","data":{}}
if
(
!
banklog
)
{
//1成功,-110提示验证信息有误,-120亲,提供的信息不正确,请验证后再试!
var
bankthreeParams
=
{
console
.
log
(
"threeResult-----------------------------"
,
threeResult
);
name
:
eaccount
.
userName
,
if
(
!
threeResult
||
threeResult
.
code
==
-
120
)
{
idno
:
eaccount
.
personsSign
,
return
this
.
returnjson
(
-
1
,
"银行三要素(姓名、身份证、银行卡号)验证失败"
);
cardno
:
eaccount
.
bankno
}
};
if
(
threeResult
.
code
==
-
110
)
{
return
this
.
returnjson
(
-
1
,
"银行三要素验证失败"
);
var
threeResult
=
await
this
.
utilesignbaoSve
.
bankthree
(
bankthreeParams
,
"bankinfoAuth"
);
// {"code":-110,"message":"手机号格式错误","data":{}}
//1成功,-110提示验证信息有误,-120亲,提供的信息不正确,请验证后再试!
console
.
log
(
"threeResult-----------------------------"
,
threeResult
);
if
(
!
threeResult
||
threeResult
.
code
==
-
120
)
{
return
this
.
returnjson
(
-
1
,
"银行三要素(姓名、身份证、银行卡号)验证失败"
);
}
if
(
threeResult
.
code
==
-
110
)
{
return
this
.
returnjson
(
-
1
,
"银行三要素验证失败"
);
}
}
}
var
uidStr
=
await
this
.
getUidStr
(
8
,
36
);
var
uidStr
=
await
this
.
getUidStr
(
8
,
36
);
...
...
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