Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hongweigao
2016-09-26 09:52:04 +0800
Commit
6172db3d3d5167e9f1ae0a0dafcac3166923023a
1 parent
68187387
红包
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
apps/home/controllers/coupons.js
apps/home/models/CouponsModel.js
apps/home/controllers/coupons.js
View file @
6172db3
...
...
@@ -61,7 +61,7 @@ const index = (req, res)=>{
}
];
if
(
coupons
.
list
.
length
!==
0
)
{
if
(
!
coupons
.
error
)
{
data
.
pager
=
{
hasCheckAll
:
false
,
count
:
coupons
.
pager
.
total
||
0
,
...
...
apps/home/models/CouponsModel.js
View file @
6172db3
...
...
@@ -19,7 +19,7 @@ const getCouponsList = (uid, type, page, limit)=>{
let
result
=
[];
if
(
couponsInfo
.
code
!==
200
)
{
return
{
list
:
result
};
return
{
error
:
'no data'
};
}
let
coupons
=
couponsInfo
.
data
.
couponList
;
...
...
Please
register
or
login
to post a comment