代码修改
parent
b8c7441c92
commit
6df9099707
|
@ -2549,7 +2549,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
var cacheKey = _userInfo.Id.ToString()+ "RestTime";
|
||||
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingImage_NeedRest", 2, 20]);
|
||||
|
||||
var value = _provider.Get<string>(cacheKey).Value;
|
||||
if (value == null)
|
||||
{
|
||||
|
@ -2566,7 +2566,7 @@ namespace IRaCIS.Application.Services
|
|||
{
|
||||
throw new BusinessValidationFailedException(_localizer["ReadingImage_NeedRest", 2, 20]);
|
||||
}
|
||||
else if (timespanMin > 140)
|
||||
else if (timespanMin > 1)
|
||||
{
|
||||
cacheDate = cacheDate.AddMinutes((Math.Floor((double)(timespanMin / 140))) * 140);
|
||||
_provider.Set(cacheKey, cacheDate.ToString(), TimeSpan.FromHours(5));
|
||||
|
|
Loading…
Reference in New Issue