/**
  * 内部验证
  */
 private function check($data)
 {
     session_start();
     if (!$this->memberconfig['register']) {
         $this->memberMsg(lang('m-reg-0'));
     }
     if (empty($data['username'])) {
         $this->memberMsg(lang('m-reg-7'));
     }
     if (!check::is_mobile($data['shoujihaoma'])) {
         $this->memberMsg(lang('m-reg-9-1'));
     }
     if ($data['smscode'] !== $_SESSION['smscode'][$data['shoujihaoma']]) {
         $this->memberMsg(lang('m-reg-9-2'));
     }
     if (!$this->is_username($data['username'])) {
         $this->memberMsg(${$data}['username'] . lang('m-pms-12'));
     }
     if (empty($data['password'])) {
         $this->memberMsg(lang('m-reg-11'));
     }
     if ($data['password'] != $data['password2']) {
         $this->memberMsg(lang('m-reg-12'));
     }
     if (!check::is_email($data['email'])) {
         $this->memberMsg(lang('m-reg-9'));
     }
     if ($this->memberconfig['banuser']) {
         $users = explode(',', $this->memberconfig['banuser']);
         if (in_array($data['username'], $users)) {
             $this->memberMsg(lang('m-reg-13', array('1' => $data['username'])));
         }
     }
     if ($this->memberconfig['regiptime']) {
         $mcfg = $this->member->from(null, 'regdate,regip')->where('regip=?', client::get_user_ip())->order('regdate DESC')->select(false);
         if ($mcfg && time() - $mcfg['regdate'] <= $this->memberconfig['regiptime'] * 3600) {
             $this->memberMsg(lang('m-reg-13', array('1' => $this->memberconfig['regiptime'])));
         }
     }
     $member = $this->member->from(null, 'id')->where('email=?', $data['email'])->select(false);
     if ($member) {
         $this->memberMsg(lang('m-reg-10'));
     }
     $member = $this->member->from(null, 'id')->where('username=?', $data['username'])->select(false);
     if ($member) {
         $this->memberMsg(lang('m-reg-8'));
     }
 }