|
|
@@ -10,6 +10,7 @@ using System.Threading.Tasks;
|
|
|
using TeamAAS_VP.Enums;
|
|
|
using TeamAAS_VP.Events;
|
|
|
using TeamAAS_VP.Interfaces;
|
|
|
+using TeamAAS_VP.Models;
|
|
|
|
|
|
namespace TeamAAS_VP.Services
|
|
|
{
|
|
|
@@ -637,12 +638,12 @@ namespace TeamAAS_VP.Services
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
/// <returns></returns>
|
|
|
/// <exception cref="ObjectDisposedException"></exception>
|
|
|
- public async Task<(bool IsSuccess, string Response)> SendFtpFileAsync(string sn, string name, CancellationToken cancellationToken = default)
|
|
|
+ public async Task<(bool IsSuccess, string Response)> SendFtpFileAsync(string sn, string name,DeviceInfo device, CancellationToken cancellationToken = default)
|
|
|
{
|
|
|
// 如果已经释放,则抛出异常,防止在已释放资源上继续操作。
|
|
|
if (_disposed) throw new ObjectDisposedException(nameof(MesService));
|
|
|
|
|
|
- var device = _configService.GetDeviceInfo();
|
|
|
+ //var device = _configService.GetDeviceInfo();
|
|
|
if (device == null || !device.EnableMES)
|
|
|
{
|
|
|
return (true, "MES功能未启用!");
|