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
e290fa40
Commit
e290fa40
authored
Jan 14, 2020
by
赵庆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
5f0f84d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
10 deletions
+42
-10
bpo-web/app/base/controller/impl/userCtl.js
+42
-10
No files found.
bpo-web/app/base/controller/impl/userCtl.js
View file @
e290fa40
...
...
@@ -13,7 +13,7 @@ class UserCtl extends CtlBase {
this
.
restS
=
system
.
getObject
(
"util.restClient"
);
this
.
smsS
=
system
.
getObject
(
"util.smsClient"
);
this
.
bankthreelogSve
=
system
.
getObject
(
"service.bankthreelogSve"
);
this
.
ecompanySve
=
system
.
getObject
(
"service.ecompanySve"
);
this
.
usereaccountSve
=
system
.
getObject
(
"service.usereaccountSve"
);
this
.
utilesignbaoSve
=
system
.
getObject
(
"service.utilesignbaoSve"
);
...
...
@@ -1036,16 +1036,48 @@ class UserCtl extends CtlBase {
idno
:
pobj
.
personsSign
,
//身份证 必填
cardno
:
pobj
.
bankno
//银行卡 必填
};
var
tt
=
await
this
.
utilesignbaoSve
.
bankthree
(
bankthreeParams
,
"bankinfoAuth"
);
// {"code":-110,"message":"手机号格式错误","data":{}}
//1成功,-110提示验证信息有误,-120亲,提供的信息不正确,请验证后再试!
console
.
log
(
"tt-----------------------------"
,
tt
);
if
(
!
tt
||
tt
.
code
==
-
120
)
{
return
system
.
getErrResult2
(
"银行三要素验证失败,请检查姓名、身份证、银行卡号是否正确"
);
}
if
(
tt
.
code
==
-
110
)
{
return
system
.
getErrResult2
(
tt
.
message
);
let
exists
=
await
this
.
bankthreelogSve
.
findOne
({
userName
:
pobj
.
userName
,
userIdNo
:
pobj
.
personsSign
,
userBankNo
:
pobj
.
bankno
,
});
if
(
!
exists
)
{
var
bankthreeParams
=
{
name
:
pobj
.
userName
,
//姓名 必填
idno
:
pobj
.
personsSign
,
//身份证 必填
cardno
:
pobj
.
bankno
//银行卡 必填
};
var
tt
=
await
this
.
utilesignbaoSve
.
bankthree
(
bankthreeParams
,
"bankinfoAuth"
);
// {"code":-110,"message":"手机号格式错误","data":{}}
//1成功,-110提示验证信息有误,-120亲,提供的信息不正确,请验证后再试!
console
.
log
(
"tt-----------------------------"
,
tt
);
if
(
!
tt
||
tt
.
code
==
-
120
)
{
return
system
.
getErrResult2
(
"银行三要素验证失败,请检查姓名、身份证、银行卡号是否正确"
);
}
if
(
tt
.
code
==
-
110
)
{
return
system
.
getErrResult2
(
tt
.
message
);
}
var
btl
=
await
this
.
bankthreelogSve
.
create
({
appId
:
"H5_"
+
eaccount
.
id
,
userName
:
pobj
.
userName
,
userIdNo
:
pobj
.
personsSign
,
userBankNo
:
pobj
.
bankno
,
use_esign
:
true
,
result
:
true
,
});
}
}
var
params
=
{
...
...
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