public function handle_request_internal() { $brokerId = $this->_params['brokerId']; $propId = $this->_params['propId']; $bucketId = $this->_params['bucketId']; $bllChoice = new bll_choice_EsfAPPAPIChoice(); if ($bllChoice->cancelChoiceSubscription($brokerId, $propId, $bucketId) === false) { return array('status' => Const_APIStatus::RETURN_CODE_ERROR, 'errcode' => $bllChoice->errorCode, 'message' => $bllChoice->errorMsg); } else { return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => array('message' => '取消提醒成功')); } }
public function handle_request_internal() { $brokerId = $this->_params['brokerId']; $propId = $this->_params['propId']; $bllChoice = new bll_choice_EsfAPPAPIChoice(); try { if ($bllChoice->startChoiceSubscription($brokerId, $propId) === false) { return array('status' => Const_APIStatus::RETURN_CODE_ERROR, 'errcode' => $bllChoice->errorCode, 'message' => $bllChoice->errorMsg); } else { return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => array('message' => '添加提醒成功')); } } catch (Exception $e) { return array('status' => Const_APIStatus::RETURN_CODE_ERROR, 'errcode' => $e->getCode(), 'message' => $e->getMessage()); } }