|
|
@@ -179,7 +179,7 @@ namespace TeamAAS_VP.Services
|
|
|
/// - 捕获 <see cref="OperationCanceledException"/> 返回 "Canceled",捕获其它异常则返回异常消息。
|
|
|
/// - 若实例已被释放则抛出 <see cref="ObjectDisposedException"/>。
|
|
|
/// </remarks>
|
|
|
- public async Task<(bool IsSuccess, string Response)> SubmitGetAsync(string sn, string comp, string gap,string cc,bool isSuccess, DateTime start_time, DateTime stop_time, CancellationToken cancellationToken = default)
|
|
|
+ public async Task<(bool IsSuccess, string Response)> SubmitGetAsync(string sn, string comp, string cc,string assypress,bool isSuccess, DateTime start_time, DateTime stop_time, CancellationToken cancellationToken = default)
|
|
|
{
|
|
|
// 如果已经释放,则抛出异常,防止在已释放资源上继续操作。
|
|
|
if (_disposed) throw new ObjectDisposedException(nameof(MesService));
|
|
|
@@ -204,12 +204,12 @@ namespace TeamAAS_VP.Services
|
|
|
if (device.F == "PTL")
|
|
|
{
|
|
|
url = $"{device.MesUrl}?c=ADD_RECORD&line={device.Line}&station={device.Station}&fixtureid={device.FixtureId}&sn={sn}&f=PTL&comp={device.comp}:{comp}" +
|
|
|
- $"&gap={gap}&cc={cc}&result={res}&start_time={start_time.ToString("yyyy-MM-dd HH:mm:ss")}&stop_time={stop_time.ToString("yyyy-MM-dd HH:mm:ss")}";
|
|
|
+ $"&cc={cc}&assy_pressure={assypress}&result={res}&start_time={start_time.ToString("yyyy-MM-dd HH:mm:ss")}&stop_time={stop_time.ToString("yyyy-MM-dd HH:mm:ss")}";
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
url = $"{device.MesUrl}?c=ADD_RECORD&line={device.Line}&station={device.Station}&fixtureid={device.FixtureId}&sn={sn}&f=PQC" +
|
|
|
- $"&gap={gap}&cc={cc}&result={res}&start_time={start_time.ToString("yyyy-MM-dd HH:mm:ss")}&stop_time={stop_time.ToString("yyyy-MM-dd HH:mm:ss")}";
|
|
|
+ $"&cc={cc}&assy_pressure={assypress}&result={res}&start_time={start_time.ToString("yyyy-MM-dd HH:mm:ss")}&stop_time={stop_time.ToString("yyyy-MM-dd HH:mm:ss")}";
|
|
|
}
|
|
|
LogHelper.WriteLogMes($"【上传URL】{url}");
|
|
|
SendTaskMessage($"【上传URL】{url}", MessageLevel.Info);
|
|
|
@@ -258,11 +258,11 @@ namespace TeamAAS_VP.Services
|
|
|
/// <param name="stop_time">结束时间。</param>
|
|
|
/// <param name="timeoutInSeconds">请求超时,单位为秒。</param>
|
|
|
/// <returns>与 <see cref="SubmitGetAsync(string, bool, DateTime, DateTime, CancellationToken)"/> 相同的返回语义。</returns>
|
|
|
- public async Task<(bool IsSuccess, string Response)> SubmitGetAsync(string sn, string comp, string gap, string cc, bool isSuccess, DateTime start_time, DateTime stop_time, double timeoutInSeconds)
|
|
|
+ public async Task<(bool IsSuccess, string Response)> SubmitGetAsync(string sn, string comp, string cc, string assypress, bool isSuccess, DateTime start_time, DateTime stop_time, double timeoutInSeconds)
|
|
|
{
|
|
|
using (var cts = new CancellationTokenSource(TimeSpan.FromSeconds(timeoutInSeconds)))
|
|
|
{
|
|
|
- return await SubmitGetAsync(sn, comp, gap, cc, isSuccess, start_time, stop_time, cts.Token);
|
|
|
+ return await SubmitGetAsync(sn, comp, cc, assypress, isSuccess, start_time, stop_time, cts.Token);
|
|
|
}
|
|
|
}
|
|
|
|