/**
  * 注册
  */
 public function register()
 {
     try {
         if (IS_POST) {
             $user = new UserModel();
             $user->register($_POST);
             $this->success('注册成功');
         } else {
             $this->display();
         }
     } catch (Exception $e) {
         $this->error($e->getMessage());
     }
 }