fix
zhangqian
2023-12-01 8324f872ef3a4d0c978a9b1d062800c6a1701c12
service/device.go
@@ -56,12 +56,12 @@
   if err != nil {
      return err
   }
   if len(deviceList) >= 0 {
   if len(deviceList) > 0 {
      conf.Conf.CurrentDeviceID = deviceList[0]
   } else if ServerID != "" {
      conf.Conf.CurrentDeviceID = ServerID
   } else {
   } else if conf.Conf.System.DeviceId != "" {
      conf.Conf.CurrentDeviceID = conf.Conf.System.DeviceId
   } else {
      conf.Conf.CurrentDeviceID = ServerID
   }
   SetDeviceIDToFile(conf.Conf.CurrentDeviceID)
   return nil