From 7a540f529d2c9a541993bc9818cad9c9093fec91 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 03 十二月 2025 11:04:35 +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