Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郝肖肖
8 years ago
Commit
93488d4d82bc8b8aece898f89a9b6f53cb773876
1 parent
9a991823
为您优选,uid传入
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
apps/product/controllers/recommend.js
apps/product/models/recommend.js
apps/product/controllers/recommend.js
View file @
93488d4
...
...
@@ -59,6 +59,10 @@ const getRecommendProduct = (req, res, next) => {
udid
:
getUdid
(
req
,
res
)
};
if
(
req
.
user
.
uid
)
{
params
.
uid
=
req
.
user
.
uid
;
}
recommend
.
getRecommendProduct
(
params
).
then
((
result
)
=>
{
res
.
json
(
result
);
}).
catch
(
next
);
...
...
apps/product/models/recommend.js
View file @
93488d4
...
...
@@ -50,11 +50,7 @@ const _processProduct = (list) => {
return
newRes
;
};
const
getRecommendProduct
=
(
params
,
uid
)
=>
{
if
(
uid
!==
0
&&
uid
!==
null
)
{
params
.
uid
=
uid
;
}
const
getRecommendProduct
=
(
params
)
=>
{
return
api
.
get
(
''
,
_
.
assign
({
method
:
'app.home.newPreference'
,
limit
:
20
,
...
...
Please
register
or
login
to post a comment