wms扫码入库逻辑代码提交
This commit is contained in:
@@ -279,6 +279,8 @@ public class OAuthService : IDynamicApiController, ITransient
|
||||
public async Task<dynamic> GetCurrentUser(string type)
|
||||
{
|
||||
if (type.IsNullOrEmpty()) type = "Web"; // 默认为Web端菜单目录
|
||||
//modify by ly on 20230616 用于区分pc与 pda
|
||||
_userManager.User.LoginType = type;
|
||||
|
||||
var userId = _userManager.UserId;
|
||||
|
||||
@@ -669,7 +671,8 @@ public class OAuthService : IDynamicApiController, ITransient
|
||||
}
|
||||
}
|
||||
|
||||
return new {
|
||||
return new
|
||||
{
|
||||
theme = user.Theme == null ? "classic" : user.Theme,
|
||||
token = string.Format("Bearer {0}", accessToken)
|
||||
};
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace JNPF.Systems.Entitys.Permission;
|
||||
/// 用户信息基类.
|
||||
/// </summary>
|
||||
[SugarTable("BASE_USER")]
|
||||
public class UserEntity : CLDEntityBase
|
||||
public partial class UserEntity : CLDEntityBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 账户.
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
using JNPF.Common.Const;
|
||||
using JNPF.Common.Contracts;
|
||||
using SqlSugar;
|
||||
|
||||
namespace JNPF.Systems.Entitys.Permission;
|
||||
|
||||
/// <summary>
|
||||
/// 用户信息基类.
|
||||
/// </summary>
|
||||
public partial class UserEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 登录类型
|
||||
/// </summary>
|
||||
public string LoginType { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user