You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
896 B
C#

9 months ago
using EntrustSettle.Common;
using EntrustSettle.Common.Const;
using EntrustSettle.IServices;
9 months ago
using EntrustSettle.Model.Models;
9 months ago
using EntrustSettle.Services.Base;
9 months ago
using System.Net.Http;
using System.Threading.Tasks;
9 months ago
namespace EntrustSettle.Services
{
9 months ago
public class OrderService : BaseServices<Order>, IOrderService
9 months ago
{
9 months ago
private readonly IHttpClientFactory httpClientFactory;
public OrderService(IHttpClientFactory httpClientFactory)
{
this.httpClientFactory = httpClientFactory;
}
public async Task SubmitToHYD(Order order)
{
var client = httpClientFactory.CreateClient(HttpClientConst.HYD);
var url = AppSettings.app("Apis", "Hyd", "下单");
var json = order.ToJson();
//new HttpContent()
//client.PostAsync(url,);
//client.GetAsync()
}
9 months ago
}
}