Example #1
0
 /**
  * 编辑邮箱地址
  */
 public function edit_email()
 {
     try {
         $this->throwMsgCheck('is_post', 'is_login', 'edit_email');
         $req = req()->_plain();
         lib()->load("UserControl");
         $uc = new UserControl();
         $uc->edit_email(login_user(), $req->post('email'), $req->post('password'), $req->post('code'));
         $this->rt_msg['status'] = true;
     } catch (\Exception $ex) {
         $this->rt_msg['msg'] = $ex->getMessage();
     }
 }