From eccd091cfc8eaf38e7251f170d6f683a152e9ef5 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期一, 16 六月 2025 11:10:06 +0800
Subject: [PATCH] pref:配置文件改为测试环境

---
 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