Skip to content

Commit

Permalink
adapt for ricq
Browse files Browse the repository at this point in the history
  • Loading branch information
mosttt authored and niuhuan committed Aug 27, 2023
1 parent 65d307b commit c62b5fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proc_qq/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "proc_qq"
version = "0.1.36"
version = "0.1.37"
edition = "2021"
description = "QQ client framework"
license = "MIT"
Expand All @@ -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"
Expand Down
9 changes: 9 additions & 0 deletions proc_qq/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit c62b5fb

Please sign in to comment.