update machine-uid for x86 sciter access x64 machine id
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
6f3123bf02
commit
c42fbe3d45
6 changed files with 13 additions and 7 deletions
|
|
@ -552,7 +552,7 @@ impl UI {
|
|||
}
|
||||
|
||||
fn is_ok_change_id(&self) -> bool {
|
||||
machine_uid::get().is_ok()
|
||||
hbb_common::machine_uid::get().is_ok()
|
||||
}
|
||||
|
||||
fn get_async_job_status(&self) -> String {
|
||||
|
|
|
|||
|
|
@ -1037,7 +1037,12 @@ pub async fn change_id_shared_(id: String, old_id: String) -> &'static str {
|
|||
}
|
||||
|
||||
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||
let uuid = Bytes::from(machine_uid::get().unwrap_or("".to_owned()).as_bytes().to_vec());
|
||||
let uuid = Bytes::from(
|
||||
hbb_common::machine_uid::get()
|
||||
.unwrap_or("".to_owned())
|
||||
.as_bytes()
|
||||
.to_vec(),
|
||||
);
|
||||
#[cfg(any(target_os = "android", target_os = "ios"))]
|
||||
let uuid = Bytes::from(hbb_common::get_uuid());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue