Browse Source

内存管理

Jeremy 2 years ago
parent
commit
89ddd47620
1 changed files with 2 additions and 5 deletions
  1. 2 5
      Service/DeviceService.cs

+ 2 - 5
Service/DeviceService.cs

@@ -23,6 +23,7 @@ using WingInterfaceLibrary.Enum;
 using WingInterfaceLibrary.DTO.Organization;
 using WingInterfaceLibrary.DTO.DiagnosisModule;
 using WingServerCommon.Config.Parameters;
+using WingServerCommon.Interfaces.Cache;
 
 namespace WingDeviceService.Service
 {
@@ -892,11 +893,7 @@ namespace WingDeviceService.Service
                 DiagnosisModule = request.DiagnosisModule,
                 Enabled = request.Enabled
             });
-            await _remedicalService.DeviceDiagnosisChanged(new DeviceDiagnosisChangedNotification
-            {
-                Token = request.Token,
-                DeviceCode = request.DeviceCode,
-            });
+            CacheMaintenance.Instance.Get<IDeviceInfosManager>().Remove(request.DeviceCode);
             return result;
         }