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
978d7c33
Commit
978d7c33
authored
Sep 27, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of t-git.51gjj.com:fangbin/51business
parents
065b79bd
4756d15c
Pipeline
#14331
passed with stage
in 46 seconds
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
apply.js
app/service/credit/apply.js
+3
-2
callrisk.js
app/service/credit/callrisk.js
+0
-0
No files found.
app/service/credit/apply.js
View file @
978d7c33
...
@@ -341,7 +341,7 @@ class ApplyService extends Service {
...
@@ -341,7 +341,7 @@ class ApplyService extends Service {
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
);
//判断用户当前三要素是否是二次查询未支付订单
//判断用户当前三要素是否是二次查询未支付订单
const
check_second_ret
=
await
this
.
checkSecond
({
name
,
phone
,
id_card
});
const
check_second_ret
=
await
this
.
checkSecond
({
name
,
phone
,
id_card
});
...
@@ -350,7 +350,7 @@ class ApplyService extends Service {
...
@@ -350,7 +350,7 @@ class ApplyService extends Service {
}
}
//生成订单
//生成订单
const
order_data
=
{
type
,
name
,
phone
,
id_card
};
const
order_data
=
{
type
,
name
,
phone
,
id_card
,
user_id
,
app_type_id
,
app_user_id
,
app_id
};
const
order
=
await
ctx
.
service
.
credit
.
order
.
createOrder
(
order_data
);
const
order
=
await
ctx
.
service
.
credit
.
order
.
createOrder
(
order_data
);
const
order_id
=
order
.
id
;
const
order_id
=
order
.
id
;
...
@@ -375,6 +375,7 @@ class ApplyService extends Service {
...
@@ -375,6 +375,7 @@ class ApplyService extends Service {
}
}
const
order_no
=
await
ctx
.
service
.
credit
.
common
.
getOrdertNo
(
'callrisk'
,
order_id
);
const
order_no
=
await
ctx
.
service
.
credit
.
common
.
getOrdertNo
(
'callrisk'
,
order_id
);
await
ctx
.
prometheusModel
.
CreditOrder
.
update
({
order_no
,
apply_id
:
apply
.
id
},
{
where
:
{
id
:
order_id
}
});
await
ctx
.
prometheusModel
.
CreditOrder
.
update
({
order_no
,
apply_id
:
apply
.
id
},
{
where
:
{
id
:
order_id
}
});
return
{
order_id
,
report_id
,
first
:
check_second_ret
.
first
,
second
:
check_second_ret
.
second
,
order_sn
};
return
{
order_id
,
report_id
,
first
:
check_second_ret
.
first
,
second
:
check_second_ret
.
second
,
order_sn
};
}
}
...
...
app/service/credit/callrisk.js
View file @
978d7c33
This diff is collapsed.
Click to expand it.
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