feat: 优化天气的图标
This commit is contained in:
@@ -74,7 +74,7 @@ const getWeatherEmoji = (text) => {
|
||||
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 "🌪️";
|
||||
return "❓";
|
||||
@@ -125,17 +125,18 @@ const weatherTextMap = {
|
||||
"阵雪": "🌨️",
|
||||
|
||||
// 雾霾 / 沙尘
|
||||
"雾": "🌫️",
|
||||
"浓雾": "🌫️",
|
||||
"强浓雾": "🌫️",
|
||||
"轻雾": "🌫️",
|
||||
"大雾": "🌫️",
|
||||
"特强浓雾": "🌫️",
|
||||
"雾": "🌁", // 有能见度的雾(城市感)
|
||||
"轻雾": "🌫️", // 轻微雾气
|
||||
"浓雾": "🌁", // 更厚的雾(用城市雾更直观)
|
||||
"大雾": "🌁",
|
||||
"强浓雾": "🌁",
|
||||
"特强浓雾": "🌁",
|
||||
|
||||
"霾": "🌫️",
|
||||
"中度霾": "🌫️",
|
||||
"重度霾": "🌫️",
|
||||
"严重霾": "🌫️",
|
||||
// 😷 霾(偏污染)
|
||||
"霾": "😷", // 直接表达空气差(用户感知最强)
|
||||
"中度霾": "😷",
|
||||
"重度霾": "🤢", // 更严重一点
|
||||
"严重霾": "☠️", // 极端情况(视觉冲击强)
|
||||
|
||||
"扬沙": "🌪️",
|
||||
"浮尘": "🌪️",
|
||||
|
||||
Reference in New Issue
Block a user