修复无法检测地区的BUG

This commit is contained in:
CN-JS-HuiBai
2026-02-08 23:08:50 +08:00
parent 1d74935ebd
commit b561e9149b

View File

@@ -28,7 +28,8 @@ is_cn=false
echo "Detecting geographic location..." echo "Detecting geographic location..."
COUNTRY=$(curl -s --max-time 3 https://ipinfo.io/country || true) COUNTRY=$(curl -s --max-time 5 https://ipinfo.littlediary.cn/info | grep -o '"country":"[^"]*"' | cut -d'"' -f4)
if [ "$COUNTRY" = "CN" ]; then if [ "$COUNTRY" = "CN" ]; then
is_cn=true is_cn=true
fi fi