Skip to content

Commit

Permalink
fix: 修复每日早上好的历史上的今天api有效性判断问题
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryXiaoYang committed Nov 20, 2024
1 parent 011e14d commit face580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plans/daily_greeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_history_today() -> str:
url = "https://api.03c3.cn/api/history"
response = requests.get(url).json()

if response.code != 200 or response.get("data") != 200:
if response.code != 200 or response.get("code") != 200:
return ""

data = response.get("data")
Expand Down

0 comments on commit face580

Please sign in to comment.