...
|
...
|
@@ -241,9 +241,13 @@ let filter = (req, res, next) => { |
|
|
* @return {[type]}
|
|
|
*/
|
|
|
let search = (req, res, next) => {
|
|
|
let params = req.query; // tar modified 161121 safe
|
|
|
let params = req.query;
|
|
|
let uid = req.user.uid || 0;
|
|
|
|
|
|
if (params.from === 'seckill') {
|
|
|
uid = 0; // 秒杀无须用户信息
|
|
|
}
|
|
|
|
|
|
// 断码区域必须传尺码
|
|
|
if (params.saleType === '1' && (!params.breakSort || !params.breakSize)) {
|
|
|
return res.render('sale/product', {
|
...
|
...
|
|