111
zhanghonglin
2026-01-05 f797a0e6d079aa25aee23d7aa4064d144d1efa74
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autofac.Core;
using Quartz;
using WIDESEAWCS_Core.Helper;
using WIDESEAWCS_QuartzJob;
 
namespace WIDESEAWCS_Tasks
{
    [DisallowConcurrentExecution]
    public class UpstreamJob : JobBase, IJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            try
            {
                //WMS生成任务
                string address = AppSettings.Get("WMSApiAddress");
                if (!string.IsNullOrEmpty(address))
                {
                    //string k = HttpHelper.Post($"{address}/api/Task/addInTask/?location={1}", "");
                }
            }
            catch (Exception ex)
            {
                //写入日志
                WriteInfo( "上游系统", $"{ex.Message}");
            }
 
            return Task.CompletedTask;
        }
    }
}