/** * 保存经纪人的纠错信息 * * @param int $communityId * @param int $brokerId * @param int $cityId * @param array $data * @param int $state * @return bool */ public static function storeApplyCommunityCorrectData($communityId, $brokerId, $cityId, $data, $state = Model_Community_GardenerApply::APPLY_STATUS_NOT_COMPLETE) { $history = static::getBrokerUnfinishedApply($communityId, $brokerId); if (empty($history)) { return 0 != Model_Community_GardenerApply::storeApplyCommunityCorrectData($communityId, $brokerId, $cityId, json_encode($data), $state); } return 1 == Model_Community_GardenerApply::updateApplyCommunityCorrectData($history['applyId'], json_encode($data), $state); }