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
htoooth
8 years ago
Commit
ca1d84de303945df0f78a1b7a808ab9339d496bb
1 parent
62715ec0
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
apps/product/models/detail-product-api.js
apps/product/models/detail-service.js
apps/product/models/detail-product-api.js
View file @
ca1d84d
...
...
@@ -211,7 +211,8 @@ function getKeywordsInfo(keywords) {
}
// 根据small_sort从redis获取分类下的关键词
function
_getRecommendKeywords
(
smallSort
)
{
// skn 用来key
function
_getRecommendKeywords
(
smallSort
,
skn
)
{
// eslint-disable-line
return
redis
.
all
([[
'get'
,
`
global
:
yoho
:
seo
:
keywords
:
sortId
:
$
{
smallSort
}:
page
:
1
`
]]).
then
(
res
=>
{
return
res
[
0
];
}).
then
(
result
=>
{
...
...
apps/product/models/detail-service.js
View file @
ca1d84d
...
...
@@ -1167,7 +1167,7 @@ const _detailDataPkg = (origin, uid, vipLevel, cookies) => {
}
// 相关推荐词
requestApi
.
recommendKeywords
=
productAPI
.
getRecommendKeywords
(
result
.
smallSortId
);
requestApi
.
recommendKeywords
=
productAPI
.
getRecommendKeywords
(
result
.
smallSortId
,
result
.
skn
);
// 店铺推荐直出(seo需要)
requestApi
.
shopRecommend
=
productAPI
.
getShopRecommendAsync
(
result
.
skn
);
...
...
Please
register
or
login
to post a comment