public function handle_request_internal() { $request = APF::get_instance()->get_request(); $broker = self::$BrokerInfo; $brokerIdentity = Bll_BrokerBaseBll::get_instance()->get_broker_identity_info_v2($broker['BaseInfo']['brokerId']); if (empty($broker['BaseInfo']) || empty($brokerIdentity)) { apf_require_class("Uri_Http"); //Uri_Http::redirect_header("/user/broker/new/brokerinfo/"); Uri_Http::redirect_header("/ajkbroker/broker/modify/brokerinfo/"); } $broker['UsrCardState'] = $brokerIdentity['IdentityInfo']['usrCardState']; $broker['UsrPhotoTmpState'] = $brokerIdentity['IdentityInfo']['userPhotoTmpState']; $broker['UsrPhotoState'] = $brokerIdentity['IdentityInfo']['userPhotoState']; $broker['BnsCardState'] = $brokerIdentity['IdentityInfo']['bnsCardState']; $broker['CheckState'] = $brokerIdentity['IdentityInfo']['checkState']; // $area = $this->getBlockName(substr($broker['BaseInfo']['areaCode'], 4, 4)); // $block = $this->getBlockName(substr($broker['BaseInfo']['areaCode'], 8, 4)); $area = Bll_Commtype_Api::getInfoByTypeCodeV2(substr($broker['BaseInfo']['areaCode'], 0, 8)); $block = Bll_Commtype_Api::getInfoByTypeCodeV2($broker['BaseInfo']['areaCode']); $broker['CityName'] = $this->getCityName($broker['BaseInfo']['cityId']); $broker['AreaName'] = $area['typeName']; $broker['BlockName'] = $block['typeName']; //获得最后提交资料 $lastupdata = Bll_BrokerBaseBll::get_instance()->getLastPostFile($broker['BaseInfo']['brokerId']); $brokerCheckInfoBll = new Bll_Broker_BrokerCheckInfo(); //获取经纪人最近一次头像或名片审核不通过的原因记录 if ($broker['UsrPhotoState'] == 2) { $brokerTheLastCheck = $brokerCheckInfoBll->getBrokerTheLastCheckInfo($broker['BaseInfo']['brokerId'], 1); $faceLastCheckInfo = $brokerTheLastCheck['content']; } else { $faceLastCheckInfo = $brokerCheckInfoBll->getNoPassExp($broker['BaseInfo']['brokerId'], 1); //1图像 } $brokerTheLastCheckInfo = $brokerCheckInfoBll->getBrokerTheLastCheckInfo($broker['BaseInfo']['brokerId'], 2); //名片 $mingpianLastCheckInfo = $brokerCheckInfoBll->getNoPassExp($broker['BaseInfo']['brokerId'], 3); //名片 $idCardLastCheckInfo = $brokerCheckInfoBll->getNoPassExp($broker['BrokerId'], 2); //电话锁定状态 $phoneLockInfo = $brokerCheckInfoBll->getLockStatus($broker['BaseInfo']['brokerId']); if ($phoneLockInfo['company_id'] == $broker['BaseInfo']['companyId'] && $phoneLockInfo['status'] == 1) { $phoneLockStatus = 1; } else { $phoneLockStatus = 0; } $request->set_attribute('broker', $broker); $request->set_attribute('lastupdata', $lastupdata); $request->set_attribute('faceLastCheckInfo', $faceLastCheckInfo); $request->set_attribute('mingpianLastCheckInfo', $mingpianLastCheckInfo); $request->set_attribute('phoneLockStatus', $phoneLockStatus); $request->set_attribute('idCardLastCheckInfo', $idCardLastCheckInfo); $request->set_attribute('brokerTheLastCheckInfo', $brokerTheLastCheckInfo); return 'Broker_BrokerInfo'; }
public function handle_request_internal() { $request = APF::get_instance()->get_request(); $broker = self::$BrokerInfo; $base_domain = APF::get_instance()->get_config('base_domain'); $objBLL = new Bll_Broker_ManageEditMobile($broker); //得到修改手机号码逻辑层对象 $uri_params = $request->get_parameters(); $newMobile = $uri_params['newmobile']; $reMobile = $uri_params['remobile']; $Code = $uri_params['code']; $act = $uri_params['act']; switch ($act) { case 'edit': if ($objBLL->editMobile($newMobile, $Code)) { Uri_Http::redirect_header("/ajkbroker/broker/editmobile/W0QQactZsuccess"); } else { Uri_Http::redirect_header("/ajkbroker/broker/editmobile/W0QQactZerror"); } break; case 'success': case 'error': $request->set_attribute("url", '/ajkbroker/broker/brokerinfo'); default: $allowEdit = $objBLL->allowEditMobile($broker['BaseInfo']['brokerId']); //判断经纪人有没有修改过 $request->set_attribute("allowEdit", $allowEdit); $request->set_attribute("UserMobile", $broker['BaseInfo']['mobile']); break; } $brokerCheckInfoBll = new Bll_Broker_BrokerCheckInfo(); //电话锁定状态 $phoneLockInfo = $brokerCheckInfoBll->getLockStatus($broker['BaseInfo']['brokerId']); if ($phoneLockInfo['company_id'] == $broker['BaseInfo']['companyId'] && $phoneLockInfo['status'] == 1) { $phoneLockStatus = 1; } else { $phoneLockStatus = 0; } $releaseMobileUrl = "http://my." . $base_domain . "/broker/releasemp?mobilesec="; $request->set_attribute('phoneLockStatus', $phoneLockStatus); $request->set_attribute("CityId", $broker['BaseInfo']['cityId']); $request->set_attribute("act", $act); $request->set_attribute("releaseMobileUrl", $releaseMobileUrl); return 'Broker_EditMobile'; }