feat: 优化天气的图标

This commit is contained in:
2026-05-14 15:40:37 +08:00
parent 9b813f0ed0
commit a45ef100b0

View File

@@ -74,7 +74,7 @@ const getWeatherEmoji = (text) => {
if (text.includes("雨")) return "🌧️"; if (text.includes("雨")) return "🌧️";
if (text.includes("雷")) return "⛈️"; if (text.includes("雷")) return "⛈️";
if (text.includes("雪")) return "🌨️"; if (text.includes("雪")) return "🌨️";
if (text.includes("雾") || text.includes("霾")) return "🌫️"; if (text.includes("雾") || text.includes("霾")) return "😷";
if (text.includes("风")) return "🌬️"; if (text.includes("风")) return "🌬️";
if (text.includes("沙")) return "🌪️"; if (text.includes("沙")) return "🌪️";
return "❓"; return "❓";
@@ -125,17 +125,18 @@ const weatherTextMap = {
"阵雪": "🌨️", "阵雪": "🌨️",
// 雾霾 / 沙尘 // 雾霾 / 沙尘
"雾": "🌫️", "雾": "🌁", // 有能见度的雾(城市感)
"雾": "🌫️", "雾": "🌫️", // 轻微雾气
"浓雾": "🌫️", "浓雾": "🌁", // 更厚的雾(用城市雾更直观)
"雾": "🌫️", "雾": "🌁",
"雾": "🌫️", "强浓雾": "🌁",
"特强浓雾": "🌫️", "特强浓雾": "🌁",
"霾": "🌫️", // 😷 霾(偏污染)
"中度霾": "🌫️", "霾": "😷", // 直接表达空气差(用户感知最强)
"度霾": "🌫️", "度霾": "😷",
"重霾": "🌫️", "重霾": "🤢", // 更严重一点
"严重霾": "☠️", // 极端情况(视觉冲击强)
"扬沙": "🌪️", "扬沙": "🌪️",
"浮尘": "🌪️", "浮尘": "🌪️",