Authored by biao

fix code check issue

@@ -10,7 +10,6 @@ const _ = require('lodash'); @@ -10,7 +10,6 @@ const _ = require('lodash');
10 const dataMap = require('../../../config/data-map'); 10 const dataMap = require('../../../config/data-map');
11 11
12 const helpers = global.yoho.helpers; 12 const helpers = global.yoho.helpers;
13 -const log = global.yoho.logger;  
14 13
15 const processProduct = require(`${global.utils}/product-process`).processProduct; 14 const processProduct = require(`${global.utils}/product-process`).processProduct;
16 15
@@ -537,10 +536,6 @@ const _getAccordionFloorData = args => { @@ -537,10 +536,6 @@ const _getAccordionFloorData = args => {
537 return data; 536 return data;
538 }; 537 };
539 538
540 -  
541 -  
542 -  
543 -  
544 const _requestContent = type => { 539 const _requestContent = type => {
545 let data = { 540 let data = {
546 client_type: 'web', 541 client_type: 'web',
@@ -551,14 +546,10 @@ const _requestContent = type => { @@ -551,14 +546,10 @@ const _requestContent = type => {
551 }; 546 };
552 547
553 return serviceApi.get('operations/api/v5/resource/home', data, { 548 return serviceApi.get('operations/api/v5/resource/home', data, {
554 - cache: true  
555 - }).then(res => {  
556 - if (res.code === 200) {  
557 - return res;  
558 - } else {  
559 - log.error('response code of "operations/api/v5/resource/home" 200');  
560 - return {};  
561 - } 549 + cache: true,
  550 + code: 200
  551 + }).then(result => {
  552 + return result;
562 }); 553 });
563 }; 554 };
564 555