fix(System): Jwt解析时,不应传入"Bearer "字符

This commit is contained in:
Ady
2022-12-16 21:00:19 +08:00
parent efd0cdef5f
commit d1225cd623
@@ -85,6 +85,8 @@ namespace VOL.Core.Utilities
{
try
{
if (jwtStr.IsNullOrEmpty()) return 0;
jwtStr = jwtStr.Replace("Bearer ", "");
return new JwtSecurityTokenHandler().ReadJwtToken(jwtStr).Id.GetInt();
}
catch