diff --git a/ci/version.code.txt b/ci/version.code.txt index 04eddb2..e1d848b 100644 --- a/ci/version.code.txt +++ b/ci/version.code.txt @@ -1 +1 @@ -v0.0.7 \ No newline at end of file +v0.0.8 \ No newline at end of file diff --git a/ci/version.info.txt b/ci/version.info.txt index ab4c9b7..fd414b8 100644 --- a/ci/version.info.txt +++ b/ci/version.info.txt @@ -1,6 +1,10 @@ ## 如果图片显示不出来需要删除原来的APP重新安装 ## PC端需要手动找到文件夹删除 +v0.0.8 + +- [x] 更换线路 + v0.0.7 - [x] 修复收藏夹 diff --git a/native/src/lib.rs b/native/src/lib.rs index 2c796fe..b76dfa4 100644 --- a/native/src/lib.rs +++ b/native/src/lib.rs @@ -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() diff --git a/native_tests/Cargo.toml b/native_tests/Cargo.toml index 7b14578..aae9e7a 100644 --- a/native_tests/Cargo.toml +++ b/native_tests/Cargo.toml @@ -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"] } diff --git a/native_tests/src/tests.rs b/native_tests/src/tests.rs index 3d70047..64afb0a 100644 --- a/native_tests/src/tests.rs +++ b/native_tests/src/tests.rs @@ -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()); +}