/**
  * 取得小区相册图片
  * @param $commId
  * @param $type 1:小区相册图片;2:小区房型图
  *              (二手房type)  =》 对应好租的
  *              $p_type    = (1 == $type) ? 3 : 2;
  * @param $limit
  * @return array
  */
 public static function getCommAlbum($commId, $type = 1, $limit = 20)
 {
     $minPKID = APF::get_instance()->get_config("min_haozu_comm_img_id", "image");
     $images = Model_Community_Attachment::getLists(array(array('visibility', '=', 1), array('commId', '=', $commId), array('imageSign', '=', $type), array('aid', '>', $minPKID)), $limit);
     $result = array();
     $resultImgs = array();
     foreach ($images as $image) {
         $result[] = array('hostid' => $image['host_id'], 'filename' => $image['filename']);
         if (isset($image['updatedDatetime'])) {
             unset($image['updatedDatetime']);
         }
         if (isset($image['imgDesc'])) {
             unset($image['imgDesc']);
         }
         $resultImgs[] = array('smallSrc' => Bll_Image_UtilsImage::show_a_img_size($image['hostId'], $image['fileName'], $commId, 'small'), 'bigSrc' => Bll_Image_UtilsImage::show_a_img_size($image['hostId'], $image['fileName'], $commId, 'big'), 'info' => $image, 'aid' => $image['aid'], 'commPicId' => $image['aid']);
     }
     return empty($resultImgs) ? $result : $resultImgs;
 }