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
8f8aaa8a
Commit
8f8aaa8a
authored
Jun 22, 2020
by
zhaoxiqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
baade4f2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
11 deletions
+97
-11
bpo-web/app/base/db/impl/idauthlogDao.js
+8
-0
bpo-web/app/base/db/models/idauthlog.js
+55
-0
bpo-web/app/base/service/impl/econtractSve.js
+17
-2
bpo-web/app/base/service/impl/idauthlogSve.js
+8
-0
bpo-web/app/base/service/impl/utillbwSve.js
+9
-9
No files found.
bpo-web/app/base/db/impl/idauthlogDao.js
0 → 100644
View file @
8f8aaa8a
const
system
=
require
(
"../../system"
);
const
Dao
=
require
(
"../dao.base"
);
class
IdauthlogDao
extends
Dao
{
constructor
(){
super
(
Dao
.
getModelName
(
IdauthlogDao
));
}
}
module
.
exports
=
IdauthlogDao
;
bpo-web/app/base/db/models/idauthlog.js
0 → 100644
View file @
8f8aaa8a
const
system
=
require
(
"../../system"
);
const
settings
=
require
(
"../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
wxconfig
.
appId
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"idauthlog"
,
{
userName
:
DataTypes
.
STRING
(
100
),
userIdNo
:
DataTypes
.
STRING
(
100
),
userBankNo
:
DataTypes
.
STRING
(
100
),
userMobile
:
DataTypes
.
STRING
(
30
),
result
:
{
type
:
DataTypes
.
BOOLEAN
,
defaultValue
:
false
},
},
{
paranoid
:
true
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
//freezeTableName: true,
// define the table's name
tableName
:
'c_idauth_log'
,
validate
:
{},
indexes
:
[
// Create a unique index on email
// {
// unique: true,
// fields: ['email']
// },
//
// // Creates a gin index on data with the jsonb_path_ops operator
// {
// fields: ['data'],
// using: 'gin',
// operator: 'jsonb_path_ops'
// },
//
// // By default index name will be [table]_[fields]
// // Creates a multi column partial index
// {
// name: 'public_by_author',
// fields: ['author', 'status'],
// where: {
// status: 'public'
// }
// },
//
// // A BTREE index with a ordered field
// {
// name: 'title_index',
// method: 'BTREE',
// fields: ['author', {attribute: 'title', collate: 'en_US', order: 'DESC', length: 5}]
// }
]
});
}
bpo-web/app/base/service/impl/econtractSve.js
View file @
8f8aaa8a
...
...
@@ -36,6 +36,8 @@ class EcontractService extends ServiceBase {
this
.
utillbwSve
=
system
.
getObject
(
"service.utillbwSve"
);
this
.
idauthlogDao
=
system
.
getObject
(
"db.idauthlogDao"
)
this
.
ydCompanyIds
=
[
10173
,
10174
,
...
...
@@ -1518,7 +1520,7 @@ class EcontractService extends ServiceBase {
});
}
let
banklog
=
await
this
.
bankthree
logDao
.
findOne
({
let
banklog
=
await
this
.
idauth
logDao
.
findOne
({
userName
:
params
.
idName
,
userIdNo
:
params
.
idNo
,
userBankNo
:
params
.
bankno
,
...
...
@@ -1531,6 +1533,12 @@ class EcontractService extends ServiceBase {
cardno
:
params
.
bankno
};
var
threeResult
=
await
this
.
utillbwSve
.
bankthree
(
bankthreeParams
,
"bankinfoAuth"
);
this
.
idauthlogDao
.
create
({
userName
:
params
.
idName
,
userIdNo
:
params
.
idNo
,
userBankNo
:
params
.
bankno
,
result
:
threeResult
.
code
});
// {"code":-110,"message":"手机号格式错误","data":{}}
//1成功,-110提示验证信息有误,-120亲,提供的信息不正确,请验证后再试!
console
.
log
(
"threeResult-----------------------------"
,
threeResult
);
...
...
@@ -1909,7 +1917,7 @@ class EcontractService extends ServiceBase {
});
}
let
banklog
=
await
this
.
bankthree
logDao
.
findOne
({
let
banklog
=
await
this
.
idauth
logDao
.
findOne
({
userName
:
params
.
idName
,
userIdNo
:
params
.
idNo
,
userBankNo
:
params
.
bankno
,
...
...
@@ -1925,6 +1933,13 @@ class EcontractService extends ServiceBase {
};
var
threeResult
=
await
this
.
utillbwSve
.
bankfour
(
bankthreeParams
,
"bankinfoAuth"
);
this
.
idauthlogDao
.
create
({
userName
:
params
.
idName
,
userIdNo
:
params
.
idNo
,
userBankNo
:
params
.
bankno
,
userMobile
:
params
.
mobile
,
result
:
threeResult
.
code
});
// {"code":-110,"message":"手机号格式错误","data":{}}
//1成功,-110提示验证信息有误,-120亲,提供的信息不正确,请验证后再试!
console
.
log
(
"threeResult-----------------------------"
,
threeResult
);
...
...
bpo-web/app/base/service/impl/idauthlogSve.js
0 → 100644
View file @
8f8aaa8a
const
system
=
require
(
"../../system"
);
const
ServiceBase
=
require
(
"../sve.base"
);
class
IdauthlogService
extends
ServiceBase
{
constructor
(){
super
(
ServiceBase
.
getDaoName
(
IdauthlogService
));
}
}
module
.
exports
=
IdauthlogService
;
bpo-web/app/base/service/impl/utillbwSve.js
View file @
8f8aaa8a
...
...
@@ -64,15 +64,15 @@ class UitlLBWService {
}],
headers
:
{
"Content-Type"
:
"application/x-www-form-urlencoded"
},
});
console
.
log
(
"
请求==="
,
rs
.
config
);
console
.
log
(
"
请求
==="
,
rs
.
data
);
console
.
log
(
"
返回状态==="
,
rs
.
status
);
console
.
log
(
"
返回参数
==="
,
rs
.
data
);
if
(
rs
.
status
===
200
&&
rs
.
data
)
{
if
(
rs
.
data
.
respCode
!=
'00000000'
)
{
//验证通过
result
.
code
=
-
120
;
}
return
result
;
}
result
.
code
=
-
1
2
0
;
result
.
code
=
-
1
1
0
;
return
result
;
}
...
...
@@ -125,15 +125,15 @@ class UitlLBWService {
}],
headers
:
{
"Content-Type"
:
"application/x-www-form-urlencoded"
},
});
console
.
log
(
"
请求==="
,
rs
.
config
);
console
.
log
(
"
请求
==="
,
rs
.
data
);
console
.
log
(
"
返回状态==="
,
rs
.
status
);
console
.
log
(
"
返回参数
==="
,
rs
.
data
);
if
(
rs
.
status
===
200
&&
rs
.
data
)
{
if
(
rs
.
data
.
respCode
!=
'00000000'
)
{
//验证通过
result
.
code
=
-
120
;
}
return
result
;
}
result
.
code
=
-
1
2
0
;
result
.
code
=
-
1
1
0
;
return
result
;
}
...
...
@@ -185,15 +185,15 @@ class UitlLBWService {
}],
headers
:
{
"Content-Type"
:
"application/x-www-form-urlencoded"
},
});
console
.
log
(
"
请求==="
,
rs
.
config
);
console
.
log
(
"
请求
==="
,
rs
.
data
);
console
.
log
(
"
返回状态==="
,
rs
.
status
);
console
.
log
(
"
返回参数
==="
,
rs
.
data
);
if
(
rs
.
status
===
200
&&
rs
.
data
)
{
if
(
rs
.
data
.
respCode
!=
'00000000'
)
{
//验证通过
result
.
code
=
-
120
;
}
return
result
;
}
result
.
code
=
-
1
2
0
;
result
.
code
=
-
1
1
0
;
return
result
;
}
...
...
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