异常企业微信通知新增IP显示

This commit is contained in:
不做码农 2023-06-05 20:44:53 +08:00
parent ac38886f60
commit 88109db5a8

View File

@ -119,7 +119,8 @@ namespace ZR.Admin.WebApi.Middleware
context.Response.ContentType = "text/json;charset=utf-8"; context.Response.ContentType = "text/json;charset=utf-8";
await context.Response.WriteAsync(responseResult, System.Text.Encoding.UTF8); await context.Response.WriteAsync(responseResult, System.Text.Encoding.UTF8);
string errorMsg = $"> 操作人:{sysOperLog.OperName} {sysOperLog.OperLocation}" + string errorMsg = $"> 操作人:{sysOperLog.OperName}" +
$"\n> 操作地区:{sysOperLog.OperIp}({sysOperLog.OperLocation})" +
$"\n> 操作模块:{sysOperLog.Title}" + $"\n> 操作模块:{sysOperLog.Title}" +
$"\n> 操作地址:{sysOperLog.OperUrl}" + $"\n> 操作地址:{sysOperLog.OperUrl}" +
$"\n> 错误信息:{msg}\n\n> {error}"; $"\n> 错误信息:{msg}\n\n> {error}";