/** * 删除房源 * * @param $brokerId * @param $cityId * @param $houseIds * @return bool */ public static function deleteHouse($brokerId, $cityId, $houseIds) { $houseIds = is_array($houseIds) ? $houseIds : explode(',', $houseIds); if (Bll_Ppc_ServiceAPI::deleteHouse($brokerId, $houseIds)) { /** * 查询计划房源信息 * 20140416 曹阳 房源删除时,确认房源是否在计划中。 * 防止房源已经从计划中移除,导致房源再次被处理,产生推广动作。 */ foreach ($houseIds as $houseId) { $relation = Model_Plan_AjkFixRelation::getRelationByProId($houseId, $cityId); if ($relation === false || $relation->status != 1) { continue; } Model_Plan_AjkFixRelation::updateRelationById($relation->id, $cityId, 5); } return true; } return false; }