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
ccbikai(👎🏻🍜)
8 years ago
Commit
03ded49c8e4e11783e6b85ae5f802eb534b24591
2 parents
afbcef91
a73447c9
Merge branch 'master' into hotfix/plusstarFooter
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
apps/product/controllers/list.js
config/cache.js
apps/product/controllers/list.js
View file @
03ded49
...
...
@@ -136,7 +136,7 @@ const _shop = (req, res, shopId) => {
_
.
forEach
(
result
.
hotList
,
(
value
,
key
)
=>
{
result
.
hotList
[
key
].
tags
=
{};
result
.
hotList
[
key
].
is_soon_sold_out
=
false
;
result
.
hotList
[
key
].
tags
.
is
H
ot
=
true
;
result
.
hotList
[
key
].
tags
.
is
_h
ot
=
true
;
});
// 有领券功能,不缓存
...
...
@@ -495,6 +495,9 @@ const userCoupon = (req, res, next) => {
}
}
cryptCouponId
=
parseInt
(
cryptCouponId
,
10
);
uid
=
parseInt
(
uid
,
10
);
if
(
uid
)
{
listModel
.
receiveCoupon
(
uid
,
...
...
config/cache.js
View file @
03ded49
'use strict'
;
const
SECOND
=
1
;
...
...
@@ -43,6 +42,7 @@ const cachePage = {
// 秒杀列表
'/product/seckill'
:
30
*
SECOND
,
'/product/seckill/list'
:
30
*
SECOND
,
// 秒杀详情
'/product/^\\/seckill\\/pro_([\\d]+)_([\\d]+)/'
:
30
*
MINUTE
,
...
...
@@ -64,10 +64,17 @@ const cachePage = {
'/brands'
:
5
*
MINUTE
,
'/brands/search'
:
1
*
MINUTE
,
//活动
// 直播活动
'/activity/live'
:
1
*
MINUTE
,
// 单品日
'/activity/single-day'
:
1
*
MINUTE
,
'/activity/single-day/getSingleData'
:
30
*
SECOND
,
'/activity/single-day/getProductData'
:
30
*
SECOND
,
// 店铺收藏
'/activity/shopCollect'
:
1
*
MINUTE
,
'/activity/
live'
:
1
*
MINUTE
'/activity/
shopNav'
:
30
*
SECOND
};
...
...
Please
register
or
login
to post a comment