fix(#IWOJ3): IP地址请求缓存时长单位更改为分钟
#Issue link https://gitee.com/LongbowEnterprise/dashboard/issues?id=IWOJ3
This commit is contained in:
parent
5600cfe4c0
commit
8c2691e57d
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue