using System;
using System.Collections.Generic;
using System.Text;
using WIDESEA_Common;
using WIDESEA_Core.Utilities;
namespace WIDESEA_Services.Services.APIInvoke.RGV
{
public class RGVAPIInvokeTaskCancel
{
///
/// 任务取消接口
///
///
///
public static WebResponseContent CancelTaskFromRGV(string taskId)
{
WebResponseContent content = new WebResponseContent();
try
{
Dictionary data = new Dictionary();
data.Add("taskId", taskId);
content = HttpHelper>.PostHttpRequestDataToRGV(data, APIAddress.RgvIPAddress + APIAddress.CancelRGVTask);
if (!content.Status)
{
throw new Exception($"给RGV下发任务取消接口调用失败:" + content.Message);
}
content.OK(data: content.Data);
}
catch (Exception ex)
{
content.Error(ex.Message);
}
return content;
}
}
}