diff --git a/proc_qq/Cargo.toml b/proc_qq/Cargo.toml index c6b4227..4e84cc6 100644 --- a/proc_qq/Cargo.toml +++ b/proc_qq/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "proc_qq" -version = "0.1.36" +version = "0.1.37" edition = "2021" description = "QQ client framework" license = "MIT" @@ -14,8 +14,8 @@ proc_qq_codegen = { path = "../proc_qq_codegen" } bytes = "1" tokio = { version = "1", features = ["full"] } tracing = "0.1" -ricq = { git = "https://github.com/lz1998/ricq.git", rev = "f951d25" } -ricq-core = { git = "https://github.com/lz1998/ricq.git", rev = "f951d25" } +ricq = { git = "https://github.com/lz1998/ricq.git", rev = "46c44a3" } +ricq-core = { git = "https://github.com/lz1998/ricq.git", rev = "46c44a3" } anyhow = "1.0" serde = "1.0" serde_json = "1.0" diff --git a/proc_qq/src/client.rs b/proc_qq/src/client.rs index b95fbf8..41d3e8a 100644 --- a/proc_qq/src/client.rs +++ b/proc_qq/src/client.rs @@ -13,6 +13,7 @@ use futures::future::BoxFuture; use futures::FutureExt; use rand::prelude::IteratorRandom; use ricq::ext::common::after_login; +use ricq::qsign::QSignClient; use ricq_core::binary::{BinaryReader, BinaryWriter}; use ricq_core::command::wtlogin::{ LoginDeviceLocked, LoginNeedCaptcha, LoginResponse, LoginSuccess, LoginUnknownStatus, @@ -657,6 +658,14 @@ impl ClientBuilder { JsonString(json_string) => parse_device_json(json_string)?, }, self.version.clone(), + Arc::new( + QSignClient::new( + String::from("http://localhost:8080"), + String::from("114514"), + Duration::from_secs(60), + ) + .unwrap(), + ), ClientHandler { modules: self.modules_vec.clone(), result_handlers: self.result_handlers_vec.clone(),