Showing
1 changed file
with
2 additions
and
2 deletions
@@ -371,10 +371,10 @@ const getRecommendProductAction = (req, res) => { | @@ -371,10 +371,10 @@ const getRecommendProductAction = (req, res) => { | ||
371 | let channel = req.yoho.channel; | 371 | let channel = req.yoho.channel; |
372 | let uid = req.user.uid; | 372 | let uid = req.user.uid; |
373 | let udid = ghelper.getUdid(req, res); | 373 | let udid = ghelper.getUdid(req, res); |
374 | - let page = req.query.page || 1; | 374 | + let page = Number(req.query.page || 1); |
375 | let ret; | 375 | let ret; |
376 | 376 | ||
377 | - if (page === '6') { | 377 | + if (page <=0 || page >= 6) { |
378 | page = 1; | 378 | page = 1; |
379 | } | 379 | } |
380 | 380 |
-
Please register or login to post a comment