mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-15 06:21:28 +03:00
refact: http, rust side, log errror (#12820)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -148,7 +148,7 @@ impl OidcSession {
|
|||||||
id: &str,
|
id: &str,
|
||||||
uuid: &str,
|
uuid: &str,
|
||||||
) -> ResultType<HbbHttpResponse<OidcAuthUrl>> {
|
) -> ResultType<HbbHttpResponse<OidcAuthUrl>> {
|
||||||
Ok(OIDC_SESSION
|
let resp = OIDC_SESSION
|
||||||
.read()
|
.read()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.client
|
.client
|
||||||
@@ -159,8 +159,14 @@ impl OidcSession {
|
|||||||
"uuid": uuid,
|
"uuid": uuid,
|
||||||
"deviceInfo": crate::ui_interface::get_login_device_info(),
|
"deviceInfo": crate::ui_interface::get_login_device_info(),
|
||||||
}))
|
}))
|
||||||
.send()?
|
.send()?;
|
||||||
.try_into()?)
|
let status = resp.status();
|
||||||
|
match resp.try_into() {
|
||||||
|
Ok(v) => Ok(v),
|
||||||
|
Err(err) => {
|
||||||
|
hbb_common::bail!("Http status: {}, err: {}", status, err);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn query(
|
fn query(
|
||||||
|
|||||||
Reference in New Issue
Block a user