Showing
3 changed files
with
4 additions
and
4 deletions
@@ -315,7 +315,7 @@ exports.detail = (req, res, next) => { | @@ -315,7 +315,7 @@ exports.detail = (req, res, next) => { | ||
315 | brands: ret[5], | 315 | brands: ret[5], |
316 | 316 | ||
317 | tag: info.tags, | 317 | tag: info.tags, |
318 | - relatedPost: (ret[9] && ret[9].length) ? ret[9] : false, | 318 | + relatedPost: (ret[10] && ret[10].length) ? ret[10] : false, |
319 | exRecos: ret[6], | 319 | exRecos: ret[6], |
320 | ads: ret[7], | 320 | ads: ret[7], |
321 | 321 |
@@ -295,7 +295,7 @@ exports.getSearchLessProduct = (channelNum, uid, udid, page) => { | @@ -295,7 +295,7 @@ exports.getSearchLessProduct = (channelNum, uid, udid, page) => { | ||
295 | img: it.default_images ? helpers.image(it.default_images, 180, 240) : '', | 295 | img: it.default_images ? helpers.image(it.default_images, 180, 240) : '', |
296 | alt: it.product_name, | 296 | alt: it.product_name, |
297 | price: '¥' + transPrice(it.sales_price), | 297 | price: '¥' + transPrice(it.sales_price), |
298 | - marketPrice: transPrice(it.market_price) === transPrice(it.sales_price) ? | 298 | + marketPrice: transPrice(it.market_price) <= transPrice(it.sales_price) ? |
299 | false : ('¥' + transPrice(it.market_price)) | 299 | false : ('¥' + transPrice(it.market_price)) |
300 | }; | 300 | }; |
301 | 301 |
@@ -26,7 +26,7 @@ const cachePage = { | @@ -26,7 +26,7 @@ const cachePage = { | ||
26 | '/guang/tags/index': 1 * MINUTE, | 26 | '/guang/tags/index': 1 * MINUTE, |
27 | 27 | ||
28 | // 领券中心 | 28 | // 领券中心 |
29 | - '/coupon/index': 5 * MINUTE, | 29 | + '/coupon/': 5 * MINUTE, |
30 | 30 | ||
31 | // 商品列表 | 31 | // 商品列表 |
32 | // '/product/list/index': 5 * MINUTE, | 32 | // '/product/list/index': 5 * MINUTE, |
@@ -58,7 +58,7 @@ const cachePage = { | @@ -58,7 +58,7 @@ const cachePage = { | ||
58 | '/brands/plusstar': 5 * MINUTE, | 58 | '/brands/plusstar': 5 * MINUTE, |
59 | 59 | ||
60 | '/^\\/special\\/(\\d+)_(.*)\\.html$/': 5 * MINUTE, | 60 | '/^\\/special\\/(\\d+)_(.*)\\.html$/': 5 * MINUTE, |
61 | - '/\\/product\\/search\\/keyword(.*)/': 7 * DAY | 61 | + '/product/search/keyword/:id': 7 * DAY |
62 | 62 | ||
63 | 63 | ||
64 | }; | 64 | }; |
-
Please register or login to post a comment