Example #1
0
 public function handle_request_internal()
 {
     if ($this->_params['demon']) {
         goto demon;
     }
     $brokerId = $this->_params['brokerId'];
     $houseId = $this->_params['propId'];
     $bll = new BLL_Choice_EsfAPPAPIChoice();
     $choiceStatus = $bll->getChoiceTypeByPropIds($houseId);
     if ($choiceStatus[$houseId] == 2) {
         return array('status' => Const_APIStatus::RETURN_CODE_ERROR, 'errcode' => '', 'message' => '结束板块精选请在电脑端操作');
     }
     if (($data = $bll->stopPlan($brokerId, $houseId)) === false) {
         return array('status' => Const_APIStatus::RETURN_CODE_ERROR, 'errcode' => $bll->errorCode, 'message' => $bll->errorMsg);
     }
     return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => array('msg' => '精选结束成功'));
     demon:
     return array('status' => Const_APIStatus::RETURN_CODE_OK, 'data' => array());
 }