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
9c754696
Commit
9c754696
authored
Oct 08, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
callrisk fix
parent
7a3e8c66
Pipeline
#14470
passed with stage
in 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
apply.js
app/service/credit/apply.js
+11
-4
No files found.
app/service/credit/apply.js
View file @
9c754696
...
@@ -58,8 +58,15 @@ class ApplyService extends Service {
...
@@ -58,8 +58,15 @@ class ApplyService extends Service {
return
ret
;
return
ret
;
}
}
/**
* 进入个人通话查询页面
*/
async
callriskInit
()
{
async
callriskInit
()
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
if
(
!
ctx
.
userId
)
{
ctx
.
failed
(
'登录异常'
);
}
let
ret
=
{
let
ret
=
{
have_be_pay_order
:
false
,
have_be_pay_order
:
false
,
order_id
:
null
,
order_id
:
null
,
...
@@ -341,7 +348,7 @@ class ApplyService extends Service {
...
@@ -341,7 +348,7 @@ class ApplyService extends Service {
const
type
=
TypeConfig
[
'callrisk'
];
//个人通话类型
const
type
=
TypeConfig
[
'callrisk'
];
//个人通话类型
let
report_id
=
null
;
let
report_id
=
null
;
//数盒魔方三要素校验
//数盒魔方三要素校验
//
await ctx.service.credit.callrisk.checkThreeElements(input);
await
ctx
.
service
.
credit
.
callrisk
.
checkThreeElements
(
input
);
// await ctx.service.credit.common.shuhemofangCheck('callrisk', input);
// await ctx.service.credit.common.shuhemofangCheck('callrisk', input);
//判断用户当前三要素是否是二次查询未支付订单
//判断用户当前三要素是否是二次查询未支付订单
...
@@ -433,14 +440,14 @@ class ApplyService extends Service {
...
@@ -433,14 +440,14 @@ class ApplyService extends Service {
let
orderFilter
=
{
let
orderFilter
=
{
arrtibutes
:
[
'id'
,
'name'
,
'id_card'
],
arrtibutes
:
[
'id'
,
'name'
,
'id_card'
],
where
:
{
where
:
{
user_id
:
ctx
.
userI
d
,
user_id
:
user_i
d
,
state
:
'已支付'
,
state
:
'已支付'
,
type
:
2
,
type
:
type
,
valid
:
1
valid
:
1
}
}
}
}
let
orderInfo
=
await
ctx
.
prometheusModel
.
CreditOrder
.
findOne
(
orderFilter
);
let
orderInfo
=
await
ctx
.
prometheusModel
.
CreditOrder
.
findOne
(
orderFilter
);
if
(
orderInfo
!==
null
&&
(
inputParams
.
name
!==
orderInfo
.
name
||
inputParams
.
id_card
!==
orderInfo
.
id_card
))
{
if
(
orderInfo
!==
null
&&
(
name
!==
orderInfo
.
name
||
id_card
!==
orderInfo
.
id_card
))
{
ctx
.
failed
(
'仅供本人查询使用,无法查询其他人信息'
);
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