From edbf9166fc8857f192adade7e15d8f7d52de4b91 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期四, 12 六月 2025 11:13:19 +0800
Subject: [PATCH] fix:bug
---
LifePayment/LifePayment.Application/LogRecord/LogService.cs | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/LifePayment/LifePayment.Application/LogRecord/LogService.cs b/LifePayment/LifePayment.Application/LogRecord/LogService.cs
index dc7b840..afcc01c 100644
--- a/LifePayment/LifePayment.Application/LogRecord/LogService.cs
+++ b/LifePayment/LifePayment.Application/LogRecord/LogService.cs
@@ -36,14 +36,14 @@
/// <returns></returns>
public async Task LogFront(LogFrontInput input)
{
- var log = new LogFrontRecord();
- ObjectMapper.Map(input, log);
- if (log.UserId == null)
- {
- log.UserId = CurrentUser?.Id;
- }
- log.IpAddress = httpContextAccessor.HttpContext?.Connection?.RemoteIpAddress?.ToString();
- logger.LogInformation($"鍓嶇鏃ュ織锛歿log.IpAddress}-{log.UserId}-{log.Url}-{log.RequestTime}-{log.Message}");
+ //var log = new LogFrontRecord();
+ //ObjectMapper.Map(input, log);
+ //if (log.UserId == null)
+ //{
+ // log.UserId = CurrentUser?.Id;
+ //}
+ //log.IpAddress = httpContextAccessor.HttpContext?.Connection?.RemoteIpAddress?.ToString();
+ logger.LogInformation($"鍓嶇鏃ュ織锛歿input.UserId}-{input.Url}-{input.RequestTime}-{input.Message}");
//await logFrontRepository.InsertAsync(log);
}
--
Gitblit v1.9.1