Showing
1 changed file
with
18 additions
and
0 deletions
@@ -11,6 +11,7 @@ const moment = require('moment'); | @@ -11,6 +11,7 @@ const moment = require('moment'); | ||
11 | const mRoot = '../models'; | 11 | const mRoot = '../models'; |
12 | const headerModel = require('../../../doraemon/models/header'); | 12 | const headerModel = require('../../../doraemon/models/header'); |
13 | const seckillModel = require(`${mRoot}/seckill`); | 13 | const seckillModel = require(`${mRoot}/seckill`); |
14 | +const _ = require('lodash'); | ||
14 | 15 | ||
15 | let headerData = headerModel.setNav({ | 16 | let headerData = headerModel.setNav({ |
16 | navTitle: '秒杀活动', | 17 | navTitle: '秒杀活动', |
@@ -18,6 +19,16 @@ let headerData = headerModel.setNav({ | @@ -18,6 +19,16 @@ let headerData = headerModel.setNav({ | ||
18 | }); | 19 | }); |
19 | 20 | ||
20 | /** | 21 | /** |
22 | + * hotfix Android 6.5.5 版本隐藏设置提醒按钮 | ||
23 | + */ | ||
24 | +const _androidHideRemindBtn = (products) => { | ||
25 | + return _.map(products, goods => { | ||
26 | + goods.hideRemind = true; | ||
27 | + return goods; | ||
28 | + }); | ||
29 | +}; | ||
30 | + | ||
31 | +/** | ||
21 | * [时间缺0补0] | 32 | * [时间缺0补0] |
22 | */ | 33 | */ |
23 | const _timeFormat = (tick) => { | 34 | const _timeFormat = (tick) => { |
@@ -228,6 +239,10 @@ const indexData = (req, res, next) => { | @@ -228,6 +239,10 @@ const indexData = (req, res, next) => { | ||
228 | return fetchProductList(activityInfo, uid).then((resultProducts) => { | 239 | return fetchProductList(activityInfo, uid).then((resultProducts) => { |
229 | result.products = resultProducts; | 240 | result.products = resultProducts; |
230 | 241 | ||
242 | + if (req.query.app_version === '6.5.5' && req.query.client_type === 'android') { | ||
243 | + result.products = _androidHideRemindBtn(resultProducts); | ||
244 | + } | ||
245 | + | ||
231 | res.json(result); | 246 | res.json(result); |
232 | }); | 247 | }); |
233 | }); | 248 | }); |
@@ -256,6 +271,9 @@ const getProductList = (req, res, next) => { | @@ -256,6 +271,9 @@ const getProductList = (req, res, next) => { | ||
256 | }; | 271 | }; |
257 | 272 | ||
258 | return fetchProductList(activityInfo, uid).then(resultProducts => { | 273 | return fetchProductList(activityInfo, uid).then(resultProducts => { |
274 | + if (req.query.app_version === '6.5.5' && req.query.client_type === 'android') { | ||
275 | + resultProducts = _androidHideRemindBtn(resultProducts); | ||
276 | + } | ||
259 | res.json({products: resultProducts}); | 277 | res.json({products: resultProducts}); |
260 | }).catch(error => { | 278 | }).catch(error => { |
261 | logger.error(error); | 279 | logger.error(error); |
-
Please register or login to post a comment