Browse Source

调整设备型号验证

fly 2 years ago
parent
commit
50e119009b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Service/ConnectService.cs

+ 2 - 1
Service/ConnectService.cs

@@ -73,7 +73,8 @@ namespace WingDeviceService.Service
                 var deviceModelList = await _deviceInfoDBServiceProxy.FindDictionaryItemsAsync(new FindDictionaryItemsDBRequest { DictionaryType = (int)DictionaryTypeEnum.DeviceModel });
                 if (!deviceModelList.Select(x => x.Value).Contains(request.DeviceModel))
                 {
-                    ThrowCustomerException(CustomerRpcCode.DeviceModelError, "DeviceModel error");
+                    //ThrowCustomerException(CustomerRpcCode.DeviceModelError, "DeviceModel error");
+                    Logger.WriteLineWarn(CustomerRpcCode.DeviceModelError.ToString()+"_"+request.DeviceModel);
                 }
                 #endregion