/** * 申请认证详情页 */ public function certDetailAction() { $id = $this->getRequest()->getParam('uid', 0); $id = safe::filter($id, 'int', 0); if ($id) { } }
/** * 添加子账户页面 */ public function subAccAction() { $arr = $this->getRequest()->getParams(); print_r($arr); $uid = safe::filter($arr['uid'], 'int', ''); $user_data = array('id' => $uid, 'username' => '', 'email' => '', 'mobile' => '', 'head_photo' => '', 'status' => 1); if ($uid) { $userModel = new UserModel(); $user_data = $userModel->getUserInfo($uid, $this->user_id); if (empty($user_data)) { $this->redirect('subAccList'); } if ($user_data['head_photo'] != '') { $user_data['head_photo_thumb'] = Thumb::get($user_data['head_photo'], 180, 180); } } $this->getView()->assign('user', $user_data); }