|
|
|
@ -32,14 +32,14 @@ namespace WebApplication1.Controllers
|
|
|
|
|
ip = configuration.GetSection("Configs:SystemIp").Value; |
|
|
|
|
port = configuration.GetSection("Configs:Port").Value; |
|
|
|
|
httpClient = httpClientFactory.CreateClient(); |
|
|
|
|
httpClient.BaseAddress = new Uri("http://143.120.5.116:8080"); // new Uri($"http://{ip}:{port}"); |
|
|
|
|
httpClient.BaseAddress = new Uri($"http://{ip}:{port}"); |
|
|
|
|
httpClient.DefaultRequestHeaders.Add("Accept", "application/json"); |
|
|
|
|
httpClient.DefaultRequestHeaders.Add("User-Agent", "HttpClientFactory-Sample"); |
|
|
|
|
httpClient.DefaultRequestHeaders.ConnectionClose = true; |
|
|
|
|
} |
|
|
|
|
[HttpGet] |
|
|
|
|
public async Task<Result<JZJBXX>> GetJZXX(string dwbm, string bmsah) |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
MDossier dossier = new MDossier(dwbm, $"{ip}:{port}"); |
|
|
|
|