继续调整,手动开启定时任务相关逻辑代码,并处理相关bug

This commit is contained in:
alex
2023-09-20 18:20:15 +08:00
parent 4220ca4b8b
commit 8ce7bb540e
12 changed files with 53 additions and 43 deletions

View File

@@ -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,