sunpengfei
2025-06-12 8cffc2cde22edfa1378f5d0e7b9780aa31c6e8ba
LifePayment/LifePayment.HttpApi/LifePay/LogController.cs
@@ -1,23 +1,19 @@
using Castle.Core.Logging;
using LifePayment.Application.Sync;
using Microsoft.AspNetCore.Authorization;
using LifePayment.Application.Contracts;
using LifePayment.Domain.Shared;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc;
namespace LifePayment.HttpApi.LifePay
namespace LifePayment.HttpApi
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class LogController : AbpController
    {
        private readonly ILogger<LogController> logger;
        private readonly ILogService logService;
        public LogController(ILogger<LogController> logger)
        public LogController(ILogService logService)
        {
            this.logger = logger;
            this.logService = logService;
        }
        /// <summary>
@@ -25,9 +21,9 @@
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        public void LogFront(string message)
        public async void LogFront(LogFrontInput message)
        {
            logger.LogInformation($"前端日志:{message}");
            await logService.LogFront(message);
        }
    }
}