Authored by biao

fix single hot bug

@@ -394,10 +394,12 @@ const _getSingehotViaResult = (args, originQuery, queryResult, type) => { @@ -394,10 +394,12 @@ const _getSingehotViaResult = (args, originQuery, queryResult, type) => {
394 394
395 if (originQuery) { 395 if (originQuery) {
396 const originQueryArr = originQuery.split(' '); 396 const originQueryArr = originQuery.split(' ');
  397 + let setFlag = false;
397 398
398 _.forEach(originQueryArr, (query, idx) => { 399 _.forEach(originQueryArr, (query, idx) => {
399 - if (query.toString() === skn.toString()) { 400 + if (!setFlag && query.toString() === skn.toString()) {
400 index = idx; 401 index = idx;
  402 + setFlag = true;
401 } 403 }
402 }); 404 });
403 } 405 }