public function handle_request_internal() { $brokerId = $this->_params['brokerId']; // 判断经纪人是否存在 $broker = Model_Broker_AjkBrokerExtend::findWithBrokerId($brokerId); if (!$broker) { throw new Exception_Broker_NotFound('BrokerId: ' . $brokerId); } return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => array('count' => Bll_CustomerRush_Basic::getBrokerLatestPushCountValue($brokerId))); }
public function handle_request_internal() { $brokerId = $this->_params['broker_id']; $result = array('status' => 'ok', 'data' => array('count' => Bll_CustomerRush_Basic::getBrokerLatestPushCountValue($brokerId))); return $result; }