Authored by 徐祁xuqi

sale-api code review rewrite

@@ -37,14 +37,14 @@ exports.getSaleGoodsList = (params) => { @@ -37,14 +37,14 @@ exports.getSaleGoodsList = (params) => {
37 37
38 let tempChannel = _.isEmpty(params.channel) ? 'boys' : params.channel; 38 let tempChannel = _.isEmpty(params.channel) ? 'boys' : params.channel;
39 39
40 - params = Object.assign({ 40 + Object.assign(params, {
41 method: 'app.search.sales', 41 method: 'app.search.sales',
42 limit: 60, 42 limit: 60,
43 order: 's_t_desc', 43 order: 's_t_desc',
44 productSize: '384x511', 44 productSize: '384x511',
45 yh_channel: yhChannel[tempChannel].channel 45 yh_channel: yhChannel[tempChannel].channel
46 - }, params);  
47 - params.yh_channel = yhChannel[tempChannel].channel; 46 + });
  47 +
48 return api.get('', sign.apiSign(params)); 48 return api.get('', sign.apiSign(params));
49 }; 49 };
50 50