/** * 用户POST登录 */ public function login() { lib()->load('UserLogin'); $ul = new UserLogin(); try { $this->throwMsgCheck('is_post'); $req = req()->_plain(); $ul->PostLogin($req->post('account'), $req->post('password'), $req->post('captcha'), $req->post('save')); $this->rt_msg['status'] = true; $this->rt_msg['content'] = $ul->LoginContent(); } catch (\Exception $ex) { $this->rt_msg['code'] = $ul->getCode(); $this->rt_msg['msg'] = $ex->getMessage(); } }