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
e3684963
Commit
e3684963
authored
Sep 06, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
49ad51d5
Pipeline
#13461
passed with stage
in 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
blacklist.js
app/service/credit/blacklist.js
+3
-2
order.js
app/service/credit/order.js
+3
-3
No files found.
app/service/credit/blacklist.js
View file @
e3684963
...
...
@@ -38,7 +38,8 @@ const DeviceConfig = {
class
BlacklistService
extends
Service
{
/**
* 黑名单报告
*
* @param {*} id 报告编号
*/
async
getReport
(
id
)
{
const
{
ctx
}
=
this
;
...
...
@@ -239,7 +240,7 @@ class BlacklistService extends Service {
}
//订单是否在有效期内
ret
.
report_valid
=
await
ctx
.
service
.
credit
.
order
.
getReportValid
(
id
);
ret
.
report_valid
=
await
ctx
.
service
.
credit
.
order
.
getReportValid
(
1
,
id
);
return
ret
;
}
...
...
app/service/credit/order.js
View file @
e3684963
...
...
@@ -53,14 +53,14 @@ class OrderService extends Service {
/**
*
* @param {*} type 报告类型(黑名单1通话2)
* @param {*}
order
Id 订单编号
* @param {*}
report
Id 订单编号
*/
async
getReportValid
(
type
,
order
Id
)
{
async
getReportValid
(
type
,
report
Id
)
{
const
{
ctx
}
=
this
;
let
valid
=
0
;
let
orderFilter
=
{
where
:
{
report_id
:
order
Id
,
report_id
:
report
Id
,
valid
:
1
}
};
...
...
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