public string CheckToken(string token) { try { var user = JWTHelper.Decode <JWTUserInfo>(token, "12345678901234567890"); var result = JsonConvert.SerializeObject(user); return(result); } catch (TokenExpiredException) { return("token已过期"); } catch (SignatureVerificationException) { return("token签名不对"); } catch (Exception) { return("非法token"); } }