Beispiel #1
0
 public static function prepareOutList(&$out)
 {
     $out['outLineHouses'] = array();
     $outLineHouseIds = array_diff(array_keys($out['houses']), array_keys($out['comboHouseList']));
     $outLineHouseInfo = $Illegal = array();
     foreach ($outLineHouseIds as $houseId) {
         $houseInfo = $out['houses'][$houseId];
         // 如果房源已过期,将其从未推广房源列表中移除
         if ($houseInfo['info']['isExpired']) {
             continue;
         }
         if ($houseInfo['info']['isIllegal']) {
             //$houseInfo['info']['illegalMessage'] = Bll_House_JpHouseInfo::getIllegalHouse($houseId);
             $Illegal[$houseId] = Bll_House_JpHouseInfo::getIllegalHouse($houseId);
         }
         $outLineHouseInfo[$houseId] = $houseInfo;
     }
     foreach ($outLineHouseInfo as $houseId => $houseInfo) {
         // 是否暂停
         //if ($houseInfo['info']['isIllegal'] || !empty($out['imgIllegal'][$houseInfo['base']['id']])) {
         if ($houseInfo['info']['isIllegal']) {
             $isIllegal_f = 1;
         } else {
             $isIllegal_f = 0;
         }
         $isIllegal[$houseId] = $isIllegal_f;
     }
     array_multisort($isIllegal, SORT_DESC, $outLineHouseIds, SORT_DESC, $outLineHouseInfo);
     $out['illegals'] = $Illegal;
     $out['outLineHouses'] = $outLineHouseInfo;
 }