Merge branch 'hotfix/barnd' into 'gray'
brand channel can unset See merge request !77
Showing
3 changed files
with
3 additions
and
3 deletions
@@ -27,7 +27,7 @@ module.exports = { | @@ -27,7 +27,7 @@ module.exports = { | ||
27 | getBrandList: (req, res, next) => { | 27 | getBrandList: (req, res, next) => { |
28 | 28 | ||
29 | brandModel.getBrandListData({ | 29 | brandModel.getBrandListData({ |
30 | - channel: req.query.channel || req.cookies._Channel || 'men' | 30 | + channel: req.query.channel |
31 | }).then(result => { | 31 | }).then(result => { |
32 | res.json(result); | 32 | res.json(result); |
33 | }).catch(next); | 33 | }).catch(next); |
@@ -28,7 +28,7 @@ module.exports = { | @@ -28,7 +28,7 @@ module.exports = { | ||
28 | getBrandListOriginData(params) { | 28 | getBrandListOriginData(params) { |
29 | return api.get('', { | 29 | return api.get('', { |
30 | method: 'app.brand.allBrandList', | 30 | method: 'app.brand.allBrandList', |
31 | - yh_channel: yhChannel[params.channel].channel | 31 | + yh_channel: params.channel ? yhChannel[params.channel].channel : '' |
32 | }, { | 32 | }, { |
33 | code: 200, | 33 | code: 200, |
34 | cache: true | 34 | cache: true |
-
Please register or login to post a comment