From ddd6f37118de56651c4b5d10b480c4cf84ee0586 Mon Sep 17 00:00:00 2001 From: syui Date: Sun, 18 Aug 2024 02:23:01 +0900 Subject: [PATCH] fix check cid --- src/feed_watch.rs | 1 - src/main.rs | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/feed_watch.rs b/src/feed_watch.rs index 6abc3f7..b1cb774 100644 --- a/src/feed_watch.rs +++ b/src/feed_watch.rs @@ -60,7 +60,6 @@ pub fn c_feed_watch(c: &Context) { if check_cid == false && { prompt.is_empty() == false || com.is_empty() == false } { println!("{}", handle); - if c.bool_flag("debug") == true { println!( "cid:{}\nuri:{}\ncid_root:{}\nuri_root:{}\nhost:{}\ndid:{}\ncheck_cid:{}", diff --git a/src/main.rs b/src/main.rs index 169cfad..0b8dfb5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -358,15 +358,12 @@ fn refresh(_c: &Context) { let session = session::get_request().await; if session == "err" { let res = refresh::post_request().await; - println!("{}", res); if res == "err" { let m = data_toml(&"handle"); let p = data_toml(&"password"); let s = data_toml(&"host"); - println!("handle:{}, pass:{}, host:{}", m, p, s); let res = token::post_request(m.to_string(), p.to_string(), s.to_string()).await; w_cfg(&s, &res, &p); - println!("res:{}", res); } else { w_refresh(&res); }