Skip to content

Commit

Permalink
:features: mainland netowrk
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Dec 13, 2023
1 parent b71d375 commit b899f14
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/version.code.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.7
v0.0.8
4 changes: 4 additions & 0 deletions ci/version.info.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
## 如果图片显示不出来需要删除原来的APP重新安装
## PC端需要手动找到文件夹删除

v0.0.8

- [x] 更换线路

v0.0.7

- [x] 修复收藏夹
Expand Down
3 changes: 2 additions & 1 deletion native/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ pub mod downloading;
mod udto;
mod utils;

const API_URL: &str = "aHR0cHM6Ly9hcGkuY29weW1hbmdhLm5ldA==";
const API_URL: &str = "aHR0cHM6Ly9hcGkubWFuZ2Fjb3B5LmNvbQ==";
// const API_URL_ORIGIN: &str = "aHR0cHM6Ly9hcGkuY29weW1hbmdhLm5ldA==";

fn api_url() -> String {
String::from_utf8(base64::prelude::BASE64_STANDARD.decode(API_URL).unwrap()).unwrap()
Expand Down
1 change: 1 addition & 0 deletions native_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ edition = "2021"

[dependencies]
native = { path = "../native" }
reqwest = "0.11.22"
serde_json = "1.0.108"
tokio = { version = "1.34.0", features = ["full"] }
8 changes: 8 additions & 0 deletions native_tests/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ fn test_comic() {
let response = native::api::comic("zhinaiyulian".to_string()).unwrap();
println!("{:?}", serde_json::to_string(&response).unwrap());
}

#[tokio::test]
async fn test_client() {
let client =
native::copy_client::Client::new(reqwest::Client::new(), option_env!("api_host").unwrap());
let tags = client.tags().await.unwrap();
println!("{:?}", serde_json::to_string(&tags).unwrap());
}

0 comments on commit b899f14

Please sign in to comment.