Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
yyq
2017-06-29 19:15:35 +0800
Commit
5371fb91c3ca844018d32083b9a4ad09b340b52a
2 parents
0ad76455
d1bc621f
Merge branch 'feature/recList2.0' of git.yoho.cn:fe/yohobuywap-node into feature/recList2.0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
apps/product/models/search.js
apps/product/router.js
doraemon/middleware/redis.js
apps/product/models/search.js
View file @
5371fb9
...
...
@@ -563,7 +563,7 @@ const getSearchKeywordDataById = (id, params, uid) => {
Object
.
assign
(
value
,
{
name
:
value
.
keyword
,
href
:
helpers
.
urlFormat
(
`
/
canpin
/
$
{
value
.
id
}.
html
`
,
null
)
link
:
helpers
.
urlFormat
(
`
/
canpin
/
$
{
value
.
id
}.
html
`
,
null
)
});
});
...
...
apps/product/router.js
View file @
5371fb9
...
...
@@ -136,7 +136,7 @@ router.get('/search/index', search.index);
// 推广落地页
router
.
get
(
'/search/keyword/:query'
,
rewrite
.
sortParams
,
search
.
keyword
);
router
.
get
(
'/search/chanpin/:id'
,
rewrite
.
sortParams
,
search
.
key
wor
d
);
router
.
get
(
'/search/chanpin/:id'
,
rewrite
.
sortParams
,
search
.
key
I
d
);
// 搜索落地页
router
.
get
(
'/search/list'
,
rewrite
.
sortParams
,
search
.
list
);
...
...
doraemon/middleware/redis.js
View file @
5371fb9
...
...
@@ -12,7 +12,7 @@ try {
bluebird
.
promisifyAll
(
redis
.
Multi
.
prototype
);
client
.
all
=
args
=>
{
if
(
!
client
.
connected
)
{
if
(
!
client
.
ready
)
{
if
(
Array
.
isArray
(
args
))
{
return
Promise
.
resolve
(
_
.
fill
(
args
,
false
));
}
else
{
...
...
Please
register
or
login
to post a comment