...
|
...
|
@@ -10,6 +10,7 @@ const _ = require('lodash'); |
|
|
const helpers = global.yoho.helpers;
|
|
|
const crypto = global.yoho.crypto;
|
|
|
const queryString = require('querystring');
|
|
|
const logger = global.yoho.logger;
|
|
|
const indexUrl = {
|
|
|
boys: helpers.urlFormat('/'),
|
|
|
girls: helpers.urlFormat('/woman'),
|
...
|
...
|
@@ -1690,7 +1691,12 @@ exports.getSearchParams = params => { |
|
|
/** 查询参数再处理 **/
|
|
|
// 对可能有中文的情况进行处理
|
|
|
if (params.query) {
|
|
|
params.query = decodeURIComponent(params.query);
|
|
|
try {
|
|
|
params.query = decodeURIComponent(params.query);
|
|
|
} catch (e) {
|
|
|
logger.info(e);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return Object.assign({}, params, nparams);
|
...
|
...
|
|