|
@@ -13,7 +13,6 @@ const _ = require('lodash'); |
|
@@ -13,7 +13,6 @@ const _ = require('lodash'); |
13
|
const helpers = global.yoho.helpers;
|
13
|
const helpers = global.yoho.helpers;
|
14
|
const searchProcess = require(`${utils}/search-process`);
|
14
|
const searchProcess = require(`${utils}/search-process`);
|
15
|
const productProcess = require(`${utils}/product-process`);
|
15
|
const productProcess = require(`${utils}/product-process`);
|
16
|
-const listParamsProcess = require(`${utils}/list-params-process`);
|
|
|
17
|
const co = require('bluebird').coroutine;
|
16
|
const co = require('bluebird').coroutine;
|
18
|
|
17
|
|
19
|
/**
|
18
|
/**
|
|
@@ -219,11 +218,7 @@ exports.search = (req, res, next) => { |
|
@@ -219,11 +218,7 @@ exports.search = (req, res, next) => { |
219
|
res.setHeader('Access-Control-Allow-Origin', allowOrigin);
|
218
|
res.setHeader('Access-Control-Allow-Origin', allowOrigin);
|
220
|
res.setHeader('Access-Control-Allow-Credentials', 'true');
|
219
|
res.setHeader('Access-Control-Allow-Credentials', 'true');
|
221
|
|
220
|
|
222
|
- let currentUrlParams = listParamsProcess.getParams(req.query.currentUrl);
|
|
|
223
|
-
|
|
|
224
|
- delete req.query.currentUrl;
|
|
|
225
|
-
|
|
|
226
|
- let params = Object.assign({}, req.query, currentUrlParams);
|
221
|
+ let params = Object.assign({}, req.query);
|
227
|
let uid = req.user.uid || 0;
|
222
|
let uid = req.user.uid || 0;
|
228
|
|
223
|
|
229
|
if (uid) {
|
224
|
if (uid) {
|