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
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
ac610cee283c04f472c2e210b1f72e5925132b19
2 parents
16428853
06095297
Merge branch 'hotfix/add-cache' into gray
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
apps/product/models/detail-product-api.js
apps/product/models/detail-product-api.js
View file @
ac610ce
...
...
@@ -214,9 +214,7 @@ function getKeywordsInfo(keywords) {
// 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
=>
{
return
getKeywordsInfo
(
JSON
.
parse
(
result
||
'[]'
));
return
getKeywordsInfo
(
JSON
.
parse
(
res
[
0
]
||
'[]'
));
});
}
...
...
Please
register
or
login
to post a comment