Authored by ccbikai(👎🏻🍜)

搜索空格处理

@@ -109,6 +109,10 @@ const _searchGoods = (params) => { @@ -109,6 +109,10 @@ const _searchGoods = (params) => {
109 delete params.channel; 109 delete params.channel;
110 } 110 }
111 111
  112 + if (params.query) {
  113 + params.query = params.query.replace(/\+/g, ',');
  114 + }
  115 +
112 params = _.assign({ 116 params = _.assign({
113 limit: '60', 117 limit: '60',
114 status: 1, 118 status: 1,