Example #1
0
 /**
  * 室均面积小于20平米的别墅类房源,都为虚假房源
  *
  * @param array $houseInfo
  * @return boolean
  */
 public function check_two($houseInfo)
 {
     if (empty(static::$usetype_detail_all)) {
         $tmp_use_type_detail_all = Model_Community_UseType::getUseTypeDetailAll();
         foreach ($tmp_use_type_detail_all as $key => $list) {
             static::$usetype_detail_all[$list['typeId']] = $list;
         }
     }
     if ($houseInfo['areaNum'] / $houseInfo['roomNum'] < 20 && static::$usetype_detail_all[$houseInfo['useType']]['typeName'] == '别墅') {
         return false;
     }
     return true;
 }