Authored by yangyang

修改小bug

@@ -32,10 +32,12 @@ class IndexModel @@ -32,10 +32,12 @@ class IndexModel
32 $result = Yohobuy::getMulti($urlList, array(), true); 32 $result = Yohobuy::getMulti($urlList, array(), true);
33 33
34 //调用接口获取list-index banner数据 34 //调用接口获取list-index banner数据
35 - $msort = $searchCondition['condition']['msort'];  
36 - $misort = $searchCondition['condition']['misort']; 35 + $msort = isset($searchCondition['condition']['msort']) ? $searchCondition['condition']['msort'] : false;
  36 + $misort = isset($searchCondition['condition']['misort']) ? $searchCondition['condition']['misort'] : false;
37 $gender = $searchCondition['condition']['gender'] == '2,3' ? 2 : 1; 37 $gender = $searchCondition['condition']['gender'] == '2,3' ? 2 : 1;
38 - $bannerData = Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_INDEX_TBANNER, 'get', array(10,$msort,$misort,$gender,0,0,0,0,0)); 38 + if ($msort && $misort) {
  39 + $bannerData = Yohobuy::yarClient(Yohobuy::SERVICE_URL . self::URI_INDEX_TBANNER, 'get', array(10,$msort,$misort,$gender,0,0,0,0,0));
  40 + }
39 41
40 // 组织模板数据 42 // 组织模板数据
41 $data = HelperSearch::getList($result, $searchCondition['options']); 43 $data = HelperSearch::getList($result, $searchCondition['options']);