1
0

fix check cid

This commit is contained in:
syui 2024-08-18 02:23:01 +09:00
parent 14ca1bcdee
commit ddd6f37118
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
2 changed files with 0 additions and 4 deletions

View File

@ -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:{}",

View File

@ -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);
}