wms扫码入库逻辑代码提交

This commit is contained in:
alex
2023-06-16 15:10:11 +08:00
parent c0c3996690
commit 034d5746de
8 changed files with 96 additions and 32 deletions

View File

@@ -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)
};

View File

@@ -8,7 +8,7 @@ namespace JNPF.Systems.Entitys.Permission;
/// 用户信息基类.
/// </summary>
[SugarTable("BASE_USER")]
public class UserEntity : CLDEntityBase
public partial class UserEntity : CLDEntityBase
{
/// <summary>
/// 账户.

View File

@@ -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; }
}