Authored by yangyang

修改小bug

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