出库签收bug处理
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Text;
|
||||
using System.Threading.Channels;
|
||||
using System.Threading.Tasks;
|
||||
using Aspose.Cells.Drawing;
|
||||
using JavaScriptEngineSwitcher.Core.Extensions;
|
||||
using JNPF;
|
||||
using JNPF.Common.Contracts;
|
||||
using JNPF.Common.Core.Manager;
|
||||
@@ -70,10 +71,11 @@ namespace Tnb.WarehouseMgr
|
||||
}
|
||||
}
|
||||
|
||||
protected Task<ClaimsPrincipal> GetUserIdentity(string? token = null)
|
||||
protected Task<ClaimsPrincipal> GetUserIdentity(string? sToken = null)
|
||||
{
|
||||
var at = token ?? UserManager.AsscessToken;
|
||||
var claims = JWTEncryption.ReadJwtToken(UserManager.AsscessToken)?.Claims;
|
||||
var at = sToken ?? UserManager.AsscessToken;
|
||||
at = at.StartsWith("Bearer ", StringComparison.OrdinalIgnoreCase) ? at.TrimStart("Bearer ") : at;
|
||||
var claims = JWTEncryption.ReadJwtToken(at)?.Claims;
|
||||
ClaimsIdentity toKen = new ClaimsIdentity();
|
||||
foreach (Claim item in claims)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user