fix gainfoQrCode
This commit is contained in:
@@ -164,11 +164,7 @@ public class DevicePermissionService : IDevicePermissionService
|
||||
public async Task GenerateDeviceTasksAsync(Func<Task> func, List<string> userNos)
|
||||
{
|
||||
var tenantId = _currentUser.GetStringTenantId();
|
||||
// if (_currentUser.GetStringSubjectId() != "14")
|
||||
// {
|
||||
// throw new Exception("系统维护中,暂不可操作");
|
||||
// }
|
||||
|
||||
|
||||
//获取所有人的权限
|
||||
if (userNos.IsEmpty())
|
||||
userNos = await GetPermissionUserNosAsync();
|
||||
|
||||
@@ -39,7 +39,7 @@ public class GainfoQrCodeService : IGainfoQrCodeService
|
||||
await _dbContext.InsertAsync(gainfoQrCode);
|
||||
}
|
||||
|
||||
if (gainfoQrCode.ModifiedTime.AddMinutes(1) >= now && !isNeedRefresh)
|
||||
if (gainfoQrCode.ModifiedTime.AddMinutes(60) >= now && !isNeedRefresh)
|
||||
{
|
||||
return gainfoQrCode.QrCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user