public function handle_request_internal() { if (!$this->isBrokerLogin()) { $this->redirect(self::getURL('my', '/login', 'anjuke')); } $broker = self::$BrokerInfo; $this->_intBrokerID = $broker['BaseInfo']['BROKERID']; $this->_intBrokerCityID = $broker['BaseInfo']['CITYID']; $type = APF::get_instance()->get_request()->get_parameter("type"); $BrokerMap = Model_Broker_MainBusiness::getBrokerMap($this->_intBrokerID); if (empty($type) || empty($BrokerMap)) { $this->redirect(self::getURL($this->_intBrokerCityID, '/shop/salelist/' . $BrokerMap['ajk_brokerid'])); } /* http://beijing.jinpu.com/dianpu/39501 http://beijing.haozu.com/shop/1796250 http://beijing.anjuke.com/shop/view/147479 */ switch ($type) { case 'ajk': $this->redirect(self::getURL($this->_intBrokerCityID, '/shop/salelist/' . $BrokerMap['ajkBrokerid'])); break; case 'zf': $this->redirect(Util_Url::getHaozuURLNew($this->_intBrokerCityID, '/dianpu/' . $BrokerMap['hzBrokerid'])); break; case 'jp': $this->redirect(Util_Url::getJinpuURLNew($this->_intBrokerCityID, '/dianpu/' . $BrokerMap['jpBrokerid'])); break; default: $this->redirect(self::getURL($this->_intBrokerCityID, '/shop/salelist/' . $BrokerMap['ajkBrokerid'])); break; } }