继续调整,手动开启定时任务相关逻辑代码,并处理相关bug
This commit is contained in:
@@ -76,7 +76,8 @@ public partial class UserManager : IUserManager, IScoped
|
||||
/// </summary>
|
||||
public UserEntity User
|
||||
{
|
||||
get =>_repository.GetSingle(u => u.Id == UserId);
|
||||
//modify by ly on 20230920
|
||||
get => _repository.CopyNew().Queryable<UserEntity>().Single(u => u.Id == UserId); //_repository.GetSingle(u => u.Id == UserId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -230,7 +231,8 @@ public partial class UserManager : IUserManager, IScoped
|
||||
var ipAddress = NetHelper.Ip;
|
||||
//var ipAddressName = await NetHelper.GetLocation(ipAddress);
|
||||
var sysConfigInfo = await _repository.AsSugarClient().Queryable<SysConfigEntity>().FirstAsync(s => s.Category.Equals("SysConfig") && s.Key.ToLower().Equals("tokentimeout"));
|
||||
data = await _repository.AsQueryable().Where(it => it.Id == UserId)
|
||||
var db = _repository.CopyNew();
|
||||
data = await db.Queryable<UserEntity>().Where(it => it.Id == UserId)
|
||||
.Select(a => new UserInfoModel
|
||||
{
|
||||
userId = a.Id,
|
||||
|
||||
Reference in New Issue
Block a user