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"