Update weather.py

This commit is contained in:
星光-k
2025-05-09 00:44:58 +08:00
committed by GitHub
parent dd011c3955
commit 8c247e2fc6

View File

@@ -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"