Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
方斌
51business
Commits
b15105a3
Commit
b15105a3
authored
Sep 26, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
1990eff7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
apply.js
app/service/credit/apply.js
+21
-5
No files found.
app/service/credit/apply.js
View file @
b15105a3
...
@@ -122,6 +122,21 @@ class ApplyService extends Service {
...
@@ -122,6 +122,21 @@ class ApplyService extends Service {
ctx
.
failed
(
'姓名输入有误,请校验后输入'
);
ctx
.
failed
(
'姓名输入有误,请校验后输入'
);
}
}
//当用户在首笔“黑名单检测报告”或“个人通话检测报告”支付成功后,当用户查询其他不同的2要素(姓名,身份证)信息时:仅供本人查询使用,无法查询其他人信息
let
orderFilter
=
{
arrtibutes
:
[
'id'
,
'name'
,
'id_card'
],
where
:
{
user_id
:
ctx
.
userId
,
state
:
'已支付'
,
type
:
1
,
valid
:
1
}
}
let
orderInfo
=
await
ctx
.
prometheusModel
.
CreditOrder
.
findOne
(
orderFilter
);
if
(
orderInfo
!==
null
&&
(
inputParams
.
name
!==
orderInfo
.
name
||
inputParams
.
id_card
!==
orderInfo
.
id_card
))
{
ctx
.
failed
(
'仅供本人查询使用,无法查询其他人信息'
);
}
//数盒魔方三要素校验
//数盒魔方三要素校验
await
ctx
.
service
.
credit
.
common
.
shuhemofangCheck
(
'blacklist'
,
inputParams
);
await
ctx
.
service
.
credit
.
common
.
shuhemofangCheck
(
'blacklist'
,
inputParams
);
...
@@ -211,18 +226,19 @@ class ApplyService extends Service {
...
@@ -211,18 +226,19 @@ class ApplyService extends Service {
ctx
.
failed
(
'获取验证码后请不要修改姓名、身份证等信息'
);
ctx
.
failed
(
'获取验证码后请不要修改姓名、身份证等信息'
);
}
}
//
判断用户是否第一次三要素核验成功
//
当用户在首笔“黑名单检测报告”或“个人通话检测报告”支付成功后,当用户查询其他不同的2要素(姓名,身份证)信息时:仅供本人查询使用,无法查询其他人信息
let
orderFilter
=
{
let
orderFilter
=
{
arrtibutes
:
[
'id'
],
arrtibutes
:
[
'id'
,
'name'
,
'id_card'
],
where
:
{
where
:
{
user_id
:
ctx
.
userId
,
user_id
:
ctx
.
userId
,
state
:
'已支付'
,
type
:
1
,
type
:
1
,
valid
:
1
valid
:
1
}
}
}
}
let
order
List
=
await
ctx
.
prometheusModel
.
CreditOrder
.
findAll
(
orderFilter
);
let
order
Info
=
await
ctx
.
prometheusModel
.
CreditOrder
.
findOne
(
orderFilter
);
if
(
order
List
===
undefined
||
orderList
.
length
===
0
)
{
if
(
order
Info
!==
null
&&
(
inputParams
.
name
!==
orderInfo
.
name
||
inputParams
.
id_card
!==
orderInfo
.
id_card
)
)
{
ret
.
first
=
true
;
ctx
.
failed
(
'仅供本人查询使用,无法查询其他人信息'
)
;
}
}
//判断用户当前三要素是否是二次查询未支付订单
//判断用户当前三要素是否是二次查询未支付订单
...
...
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