From 82831a86d529817e51f5b6e3cec636d21cef3c9b Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期三, 19 三月 2025 16:17:40 +0800
Subject: [PATCH] fix:bug修复
---
LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs | 29 ++++++++++++++++++++++++++++-
1 files changed, 28 insertions(+), 1 deletions(-)
diff --git a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs b/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
index 58b03bb..78fcb0a 100644
--- a/LifePayment/LifePayment.HttpApi/LifePay/LifePayController.cs
+++ b/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>
@@ -146,7 +164,7 @@
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
- public async Task<PageOutput<UserListOutput>> GetUserPage(PageInput input)
+ public async Task<PageOutput<UserListOutput>> GetUserPage(QueryUserPageInput input)
{
return await _lifePayService.GetUserPage(input);
}
@@ -213,6 +231,15 @@
}
/// <summary>
+ /// 鑾峰彇鍏ㄩ儴缂磋垂娓犻亾
+ /// </summary>
+ [HttpGet]
+ public async Task<List<CreateEditPayChannelsInput>> GetLifePayChannlesAllList()
+ {
+ return await _lifePayService.GetLifePayChannlesAllList();
+ }
+
+ /// <summary>
/// 鑾峰彇娓犻亾璇︽儏
/// </summary>
/// <param name="id"></param>
--
Gitblit v1.9.1