fix gainfoQrCode

This commit is contained in:
2024-08-02 15:36:38 +08:00
parent fc6bd54caa
commit 075c389d3c
2 changed files with 2 additions and 6 deletions

View File

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

View File

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