public function handle_request_internal() { if ($this->_params['demon']) { goto demon; } $brokerId = $this->_params['brokerId']; $houseIds = explode(',', $this->_params['propIds']); $bll = new BLL_Choice_EsfAPPAPIChoice(); if (($data = $bll->deletePlan($brokerId, $houseIds)) === 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()); }