|
|
@ -269,7 +269,7 @@ namespace Myshipping.Application
|
|
|
|
billdto.Key = key.Account;
|
|
|
|
billdto.Key = key.Account;
|
|
|
|
billdto.PWD = key.Password;
|
|
|
|
billdto.PWD = key.Password;
|
|
|
|
var json=billdto.ToJsonString();
|
|
|
|
var json=billdto.ToJsonString();
|
|
|
|
var html= await url.Value.SetHttpMethod(HttpMethod.Post).SetQueries(new { msg = json }).SendAsAsync<RespCommon>();
|
|
|
|
var html= await url.Value.SetHttpMethod(HttpMethod.Post).SetQueries(new { msg = json }).SetRetryPolicy(3, 5000).SendAsAsync<RespCommon>();
|
|
|
|
_logger.LogInformation("提单号:" + input.MBLNO + " 调用运踪接口返回"+ html.ToJsonString());
|
|
|
|
_logger.LogInformation("提单号:" + input.MBLNO + " 调用运踪接口返回"+ html.ToJsonString());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -372,6 +372,32 @@ namespace Myshipping.Application
|
|
|
|
OldValue = _oldvalue,
|
|
|
|
OldValue = _oldvalue,
|
|
|
|
NewValue = _value,
|
|
|
|
NewValue = _value,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
if (descriptor.Name== "YARDID"|| descriptor.Name == "YARD"|| descriptor.Name == "MBLNO") {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(input.YARDID) && !string.IsNullOrWhiteSpace(input.YARD) && !string.IsNullOrWhiteSpace(input.MBLNO))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_logger.LogInformation("提单号:" + input.MBLNO + " 调用运踪接口");
|
|
|
|
|
|
|
|
var key = _webconfig.FirstOrDefault(x => x.TenantId == Convert.ToInt64(UserManager.TENANT_ID) && x.TypeCode == "seae_billtraceurl");
|
|
|
|
|
|
|
|
var url = _dicdata.FirstOrDefault(x => x.Code == "seae_billtraceurl");
|
|
|
|
|
|
|
|
BillTraceDto billdto = new BillTraceDto();
|
|
|
|
|
|
|
|
List<BillTraceList> billTraceList = new List<BillTraceList>();
|
|
|
|
|
|
|
|
billTraceList.Add(new BillTraceList
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MBLNO = input.MBLNO,
|
|
|
|
|
|
|
|
YARD = input.YARD,
|
|
|
|
|
|
|
|
YardCode = input.YARDID,
|
|
|
|
|
|
|
|
CARRIER = null,
|
|
|
|
|
|
|
|
CARRIERID = null,
|
|
|
|
|
|
|
|
isBook = false
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
billdto.Children = billTraceList;
|
|
|
|
|
|
|
|
billdto.Key = key.Account;
|
|
|
|
|
|
|
|
billdto.PWD = key.Password;
|
|
|
|
|
|
|
|
var json = billdto.ToJsonString();
|
|
|
|
|
|
|
|
var html = await url.Value.SetHttpMethod(HttpMethod.Post).SetQueries(new { msg = json }).SetRetryPolicy(3, 5000).SendAsAsync<RespCommon>();
|
|
|
|
|
|
|
|
_logger.LogInformation("提单号:" + input.MBLNO + " 调用运踪接口返回" + html.ToJsonString());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|