From 450d5b957d1e3a6b668c267dd9a3ed860c447327 Mon Sep 17 00:00:00 2001 From: EillesWan Date: Sun, 6 Oct 2024 04:03:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=A5=E8=8B=B1=E7=89=B9=E5=B0=94?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=99=A8=E5=BF=98=E4=BA=86lower=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/nonebot_plugins/liteyuki_status/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nonebot_plugins/liteyuki_status/api.py b/src/nonebot_plugins/liteyuki_status/api.py index c432dd9..d847708 100644 --- a/src/nonebot_plugins/liteyuki_status/api.py +++ b/src/nonebot_plugins/liteyuki_status/api.py @@ -230,7 +230,7 @@ async def get_hardware_data() -> dict: cpu_brand_raw = cpuinfo.get_cpu_info().get("brand_raw", "未知处理器") if "amd" in cpu_brand_raw.lower(): brand = "AMD" - elif "intel" in cpu_brand_raw: + elif "intel" in cpu_brand_raw.lower(): brand = "英特尔" elif "apple" in cpu_brand_raw.lower(): brand = "苹果"