lingling
2025-03-18 ceb8ce456f406d4010aa83dd7da3d9e63f0e211a
add log
4个文件已修改
42 ■■■■ 已修改文件
LifePayment/LifePayment.Domain.Shared/ACOOLY/ACOOLYInput.cs 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Domain/Common/CommonManager.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Host/LifePaymentService.HttpApi.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
LifePayment/LifePayment.Domain.Shared/ACOOLY/ACOOLYInput.cs
@@ -247,6 +247,11 @@
{
    public string CheckChannelId { get; set; }
}
public class LogErrorInput
{
    public string Error { get; set; }
}
public class SetLifePayOrderPayTypeInput : ChannelsBaseInput
{
    [Required(ErrorMessage = "订单号不可为空")]
LifePayment/LifePayment.Domain/Common/CommonManager.cs
@@ -1,22 +1,11 @@
using LifePayment.Domain.Models;
using LifePayment.Domain.Shared;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration;
using System;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Domain.Repositories;
using ZeroD.Util;
using System.Text.Json.Serialization;
using System.Text.Json;
using Aliyun.OSS.Util;
using Aliyun.OSS;
using Nest;
using System.IO;
namespace LifePayment.Domain
{
LifePayment/LifePayment.Host/LifePaymentService.HttpApi.xml
@@ -86,6 +86,12 @@
            </summary>
            <returns></returns>
        </member>
        <member name="M:LifePayment.HttpApi.LifePayController.AddLogger(LifePayment.Domain.Shared.LogErrorInput)">
            <summary>
            获取燃气支持商户
            </summary>
            <returns></returns>
        </member>
        <member name="M:LifePayment.HttpApi.LifePayController.GetRate">
            <summary>
            获取折扣
LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
@@ -2,6 +2,7 @@
using LifePayment.Domain.Shared;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -20,13 +21,16 @@
    {
        private readonly ILifePayService _lifePayService;
        private readonly IWebClientInfoProvider _webClientInfoProvider;
        private readonly ILogger<LifePayController> _logger;
        public LifePayController(
              ILifePayService lifePayService,
              IWebClientInfoProvider webClientInfoProvider
            , ILogger<LifePayController> logger
              )
        {
            _lifePayService = lifePayService;
            _webClientInfoProvider = webClientInfoProvider;
            _logger = logger;
        }
        #region 查询
@@ -107,6 +111,20 @@
        }
        /// <summary>
        /// 获取燃气支持商户
        /// </summary>
        /// <returns></returns>
        [HttpPost]
        [AllowAnonymous]
        public async Task<int> AddLogger(LogErrorInput input)
        {
            Logger.LogError(input.Error);
            return Constant.SUCCESS;
        }
        /// <summary>
        /// 获取折扣
        /// </summary>
        /// <returns></returns>