public function handle_request_internal() { $brokerId = $this->_params['brokerId']; $view = $this->_params['view']; //每日3条 $feedbackInfos = Model_Mobile_BrokerFeedbacks::getBrokerFeedbacks($brokerId); $feedbacksCount = count($feedbackInfos); if ($feedbacksCount >= 3) { throw new Exception_Broker_BrokerFeedbackBeyondLimit(); } //保存经纪人意见 $params = array(); $params['brokerId'] = $brokerId; $params['body'] = $view; $params['createTime'] = date('Y-m-d H:i:s', time()); $params['updateTime'] = date('Y-m-d H:i:s', time()); Model_Mobile_BrokerFeedbacks::insertBrokerFeedbacks($params); return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => array('message' => '意见反馈成功')); }