查询工序报工详情
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using UAParser;
|
||||
using DOAN.Infrastructure.IPTools;
|
||||
using Infrastructure.Model;
|
||||
|
||||
namespace Infrastructure.Extensions
|
||||
{
|
||||
@@ -103,6 +104,12 @@ namespace Infrastructure.Extensions
|
||||
|
||||
return uid;
|
||||
}
|
||||
public static string GetNickName(this HttpContext context)
|
||||
{
|
||||
|
||||
TokenModel tokenModel= JwtUtil.GetLoginUser(context);
|
||||
return tokenModel?.UserName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 判断是否是管理员
|
||||
|
||||
Reference in New Issue
Block a user