code: public function doLogin(Request $request)
      {
          $verify_code = $request->param('verify_code');
          if (! Config::get('app_debug') && ! Captcha::checkCode($verify_code, self::LOGIN_KEY)) {
              return $this->error('验证码错误');
          }
  
          $user_name = $request->param('user_name');
          $user_pass = $request->param('user_passwd');
          $res = LoginLogic::doLogin($user_name, $user_pass);
          return $this->jump($res['code'], $res['msg'], $res['data']);
      }
docs: 登录验证
  
  @param Request $request