mirror of
https://gitee.com/BDWare/common
synced 2025-12-29 17:49:29 +00:00
fix hardwareinfo missing in docker
This commit is contained in:
@@ -4,6 +4,7 @@ import java.io.BufferedReader;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.util.Scanner;
|
import java.util.Scanner;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
public class HardwareInfo {
|
public class HardwareInfo {
|
||||||
public static OSType type = getOSType();
|
public static OSType type = getOSType();
|
||||||
@@ -106,6 +107,9 @@ public class HardwareInfo {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (result.toString().trim().equals("")) {
|
||||||
|
return UUID.randomUUID().toString();
|
||||||
|
}
|
||||||
return result.toString().trim();
|
return result.toString().trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user