fix(#IWOJ3): IP地址请求缓存时长单位更改为分钟

#Issue
link https://gitee.com/LongbowEnterprise/dashboard/issues?id=IWOJ3
This commit is contained in:
Argo Zhang 2019-05-17 16:14:20 +08:00
parent 5600cfe4c0
commit 8c2691e57d
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ namespace Bootstrap.DataAccess
var url = RetrieveLocaleIPSvrUrl(name);
op.Locator = string.IsNullOrEmpty(url) ? null : DefaultIPLocatorProvider.CreateLocator(name);
op.Url = string.IsNullOrEmpty(url) ? string.Empty : $"{url}{op.IP}";
if (int.TryParse(RetrieveLocaleIPSvrCachePeriod(), out var period) && period > 0) op.Period = period;
if (int.TryParse(RetrieveLocaleIPSvrCachePeriod(), out var period) && period > 0) op.Period = period * 60 * 1000;
}
}