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("雷")) 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 = {
|
|||||||
"阵雪": "🌨️",
|
"阵雪": "🌨️",
|
||||||
|
|
||||||
// 雾霾 / 沙尘
|
// 雾霾 / 沙尘
|
||||||
"雾": "🌫️",
|
"雾": "🌁", // 有能见度的雾(城市感)
|
||||||
"浓雾": "🌫️",
|
"轻雾": "🌫️", // 轻微雾气
|
||||||
"强浓雾": "🌫️",
|
"浓雾": "🌁", // 更厚的雾(用城市雾更直观)
|
||||||
"轻雾": "🌫️",
|
"大雾": "🌁",
|
||||||
"大雾": "🌫️",
|
"强浓雾": "🌁",
|
||||||
"特强浓雾": "🌫️",
|
"特强浓雾": "🌁",
|
||||||
|
|
||||||
"霾": "🌫️",
|
// 😷 霾(偏污染)
|
||||||
"中度霾": "🌫️",
|
"霾": "😷", // 直接表达空气差(用户感知最强)
|
||||||
"重度霾": "🌫️",
|
"中度霾": "😷",
|
||||||
"严重霾": "🌫️",
|
"重度霾": "🤢", // 更严重一点
|
||||||
|
"严重霾": "☠️", // 极端情况(视觉冲击强)
|
||||||
|
|
||||||
"扬沙": "🌪️",
|
"扬沙": "🌪️",
|
||||||
"浮尘": "🌪️",
|
"浮尘": "🌪️",
|
||||||
|
|||||||
Reference in New Issue
Block a user