Skip to content

Commit 5d58c4c

Browse files
committed
更新action
1 parent b1e85fe commit 5d58c4c

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/rust.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ jobs:
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

src/cron.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@ use tgbot_app::{util::REQWEST_CLIENT, GLOBAL_CONFIG};
77
pub 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
*☀️ 天气预报 ☀️*

0 commit comments

Comments
 (0)