Authored by 郝肖肖

'保留前12个数据'

@@ -599,7 +599,9 @@ const getSearchKeywordDataById = (id, params, uid) => { @@ -599,7 +599,9 @@ const getSearchKeywordDataById = (id, params, uid) => {
599 result.queryKey = params.query; 599 result.queryKey = params.query;
600 600
601 if (!_.isEmpty(redisData.data)) { 601 if (!_.isEmpty(redisData.data)) {
602 - _.forEach(redisData.data, value => { 602 + let tdata = _.slice(redisData.data, 0, 12);
  603 +
  604 + _.forEach(tdata, value => {
603 if (!value) { 605 if (!value) {
604 return; 606 return;
605 } 607 }