调整,wms通用逻辑代码
This commit is contained in:
@@ -58,4 +58,8 @@ public class LoginInput
|
||||
/// 单点登录票据.
|
||||
/// </summary>
|
||||
public string online_ticket { get; set; }
|
||||
/// <summary>
|
||||
/// 登录类型用于区分Pc Pda
|
||||
/// </summary>
|
||||
public string login_type { get; set; }
|
||||
}
|
||||
@@ -279,8 +279,7 @@ 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 = "fadsfadsfadsfasd";
|
||||
|
||||
|
||||
var userId = _userManager.UserId;
|
||||
|
||||
@@ -596,7 +595,8 @@ public class OAuthService : IDynamicApiController, ITransient
|
||||
{ ClaimConst.TENANTID, options.ConfigId },
|
||||
{ ClaimConst.CONNECTIONCONFIG, options},
|
||||
{ ClaimConst.SINGLELOGIN, (int)sysConfig.singleLogin },
|
||||
{ ClaimConst.OnlineTicket, input.online_ticket }
|
||||
{ ClaimConst.OnlineTicket, input.online_ticket },
|
||||
{ ClaimConst.LOGINTYPE,input.login_type}
|
||||
}, tokenTimeout);
|
||||
|
||||
// 单点登录标识缓存
|
||||
|
||||
Reference in New Issue
Block a user