File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 run : cargo test --verbose
2525 - name : Run cargo update
2626 run : cargo update
27+ - name : Install cargo audit
28+ run : cargo install cargo-audit
2729 - name : Audit
2830 run : cargo audit
Original file line number Diff line number Diff line change @@ -7,16 +7,10 @@ use tgbot_app::{util::REQWEST_CLIENT, GLOBAL_CONFIG};
77pub async fn tianqi ( bot : Arc < Bot > ) {
88 let tianqi: Value = REQWEST_CLIENT . get ( "https://cn.apihz.cn/api/tianqi/tqyb.php?id=88888888&key=88888888&sheng=湖南&place=长沙" )
99 . send ( ) . await . unwrap ( ) . json ( ) . await . unwrap ( ) ;
10+ // 公共id key容易失败
1011 if tianqi[ "place" ] == "null" {
1112 return ;
1213 }
13- // let str_format = format!(
14- // "
15- // *☀️ 天气预报 ☀️*
16- // 🏙️ *地区*: {}
17- // 🌡️ *温度*: {}°C",
18- // tianqi["place"], tianqi["temperature"]
19- // );
2014 let str_format = format ! (
2115 "
2216 *☀️ 天气预报 ☀️*
You can’t perform that action at this time.
0 commit comments