# 2022-04-10

### 1.4.4开源社区版:
无
### 0.3.5 专业版:
【新增】增加用户操作日志,可记录接口也可记录后台,同时支持本地存储或数据库存储。支持配置文件开启。
【新增】数据库增加用户操作日志表。
【优化】优化反射获取所有Controller 和Action的全局方法,增加缓存设置。
【优化】优化记录IP请求数据的中间件。
【修复】修复ios下用户充值余额的功能不显示的情况。
【修复】修复我的余额面板列表中右侧三角无反应的问题。
【修复】修复代理中心下线人数和订单数量统计错误的问题。#I51OUC
This commit is contained in:
JianWeie
2022-04-10 02:40:26 +08:00
parent dcefe1f4a7
commit b0360d1da4
33 changed files with 1963 additions and 277 deletions

View File

@@ -67,9 +67,9 @@ namespace CoreCms.Net.Middlewares
if (!string.IsNullOrEmpty(requestInfo))
{
Parallel.For(0, 1, e =>
Parallel.For(0, 1, _ =>
{
LogLockHelper.OutSql2Log("RequestIpInfoLog", "RequestIpInfoLog" + dt.ToString("yyyy-MM-dd-HH"), new string[] { requestInfo + "," }, false);
LogLockHelper.OutSql2Log("RequestIpInfoLog", "RequestIpInfoLog" + dt.ToString("yyyy-MM-dd-HH"), new[] { requestInfo + "," }, false);
});
request.Body.Position = 0;
}
@@ -77,6 +77,7 @@ namespace CoreCms.Net.Middlewares
}
catch (Exception)
{
// ignored
}
}
else
@@ -95,10 +96,7 @@ namespace CoreCms.Net.Middlewares
var ip = context.Request.Headers["X-Forwarded-For"].ObjectToString();
if (string.IsNullOrEmpty(ip))
{
if (context.Connection.RemoteIpAddress != null)
{
ip = context.Connection.RemoteIpAddress.MapToIPv4().ObjectToString();
}
ip = context.Connection.RemoteIpAddress.ObjectToString();
}
return ip;
}