fix 离线消费处理
This commit is contained in:
@@ -33,7 +33,7 @@ public class GainfosController : ControllerBase
|
|||||||
public async Task<IActionResult> GetFaceAsync(string token)
|
public async Task<IActionResult> GetFaceAsync(string token)
|
||||||
{
|
{
|
||||||
var hostName = _configuration.GetSection("HostName").Value;
|
var hostName = _configuration.GetSection("HostName").Value;
|
||||||
var httpClient = _httpClientFactory.CreateClient();
|
var httpClient = _httpClientFactory.CreateClient("face");
|
||||||
|
|
||||||
_logger.LogInformation("token:{token}", token);
|
_logger.LogInformation("token:{token}", token);
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using Dlhis.Middle.Api;
|
using Dlhis.Middle.Api;
|
||||||
using Dlhis.Middle.Request;
|
using Dlhis.Middle.Request;
|
||||||
using Dlhis.Middle.Response;
|
using Dlhis.Middle.Response;
|
||||||
|
using Dlhis.Middle.Services;
|
||||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
||||||
using Kurisu.AspNetCore.UnifyResultAndValidation;
|
using Kurisu.AspNetCore.UnifyResultAndValidation;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
@@ -14,11 +15,11 @@ namespace Dlhis.Middle.Controllers;
|
|||||||
[ApiController]
|
[ApiController]
|
||||||
public class OrdersController : ControllerBase
|
public class OrdersController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly ICanteenApi _canteenApi;
|
private readonly IOrderService _orderService;
|
||||||
|
|
||||||
public OrdersController(ICanteenApi canteenApi)
|
public OrdersController(IOrderService orderService)
|
||||||
{
|
{
|
||||||
_canteenApi = canteenApi;
|
_orderService = orderService;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -30,6 +31,7 @@ public class OrdersController : ControllerBase
|
|||||||
[IgnoreTenant]
|
[IgnoreTenant]
|
||||||
public async Task<DefaultApiResult<OrderResultResponse>> AddAsync(OrderAddRequest request)
|
public async Task<DefaultApiResult<OrderResultResponse>> AddAsync(OrderAddRequest request)
|
||||||
{
|
{
|
||||||
return await _canteenApi.AddAsync(request);
|
return await _orderService.AddAsync(request);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user