/** * 判断小区是否可以申请 * * @param int $communityId * @return bool */ public static function checkCommunityCanApply($communityId) { $communityImageList = static::getValidateCommunityImagesList($communityId); if (count($communityImageList) >= self::COMMUNITY_IMAGE_BASE_COUNT) { return false; } /** 判断小区园丁是否是有效的小区园丁 */ if (Bll_Community_CommunityGardener::checkCommunityGardenerValidate($communityId)) { return false; } return true; }