From 8c247e2fc6dc62ec790461f3498e6676c680f5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=85=89-k?= <36470587+kxgx@users.noreply.github.com> Date: Fri, 9 May 2025 00:44:58 +0800 Subject: [PATCH] Update weather.py --- bin/weather.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/weather.py b/bin/weather.py index 8c29ca1..10d379f 100644 --- a/bin/weather.py +++ b/bin/weather.py @@ -47,6 +47,7 @@ def get_ip(): logging.error("所有IP服务尝试失败") return None + def get_ip(): """从ip.cn获取当前IP地址""" url = "https://ip.cn/api/index?ip=&type=0"