This commit is contained in:
parent
4a3965efcd
commit
f7a251faec
@ -58,7 +58,7 @@ pub fn c_feed_watch(c: &Context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if prompt.is_empty() == false || com.is_empty() == false {
|
if check_cid == false && { prompt.is_empty() == false || com.is_empty() == false } {
|
||||||
println!("{}", handle);
|
println!("{}", handle);
|
||||||
if c.bool_flag("debug") == true {
|
if c.bool_flag("debug") == true {
|
||||||
println!(
|
println!(
|
||||||
|
@ -358,15 +358,12 @@ fn refresh(_c: &Context) {
|
|||||||
let session = session::get_request().await;
|
let session = session::get_request().await;
|
||||||
if session == "err" {
|
if session == "err" {
|
||||||
let res = refresh::post_request().await;
|
let res = refresh::post_request().await;
|
||||||
println!("{}", res);
|
|
||||||
if res == "err" {
|
if res == "err" {
|
||||||
let m = data_toml(&"handle");
|
let m = data_toml(&"handle");
|
||||||
let p = data_toml(&"password");
|
let p = data_toml(&"password");
|
||||||
let s = data_toml(&"host");
|
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;
|
let res = token::post_request(m.to_string(), p.to_string(), s.to_string()).await;
|
||||||
w_cfg(&s, &res, &p);
|
w_cfg(&s, &res, &p);
|
||||||
println!("res:{}", res);
|
|
||||||
} else {
|
} else {
|
||||||
w_refresh(&res);
|
w_refresh(&res);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user