Admin
2025-12-02 9e42f0dafa019f5ecf6b0ff425ecb966b002171e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
    {
 
        /// <summary>
        /// 任务取消接口
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static WebResponseContent CancelTaskFromRGV(string taskId)
        {
            WebResponseContent content = new WebResponseContent();
            try
            {
                Dictionary<string, string> data = new Dictionary<string, string>();
                data.Add("taskId", taskId);
                content = HttpHelper<Dictionary<string, string>>.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;
        }
 
    }
}