service/device.go
@@ -58,10 +58,10 @@ } 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