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.
|
|
|
|
using EntrustSettle.Common;
|
|
|
|
|
using EntrustSettle.Common.Const;
|
|
|
|
|
using EntrustSettle.IServices;
|
|
|
|
|
using EntrustSettle.Model.Models;
|
|
|
|
|
using EntrustSettle.Services.Base;
|
|
|
|
|
using System.Net.Http;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace EntrustSettle.Services
|
|
|
|
|
{
|
|
|
|
|
public class OrderService : BaseServices<Order>, IOrderService
|
|
|
|
|
{
|
|
|
|
|
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()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|