From 6acfba940b4e9aaae6c1ebb4ed3ce301fc980528 Mon Sep 17 00:00:00 2001 From: Coldsmile_7 Date: Sat, 25 Apr 2026 14:54:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E5=90=8D=E7=A7=B0=E7=9A=84=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=96=B0=E7=9A=84API=E8=AF=B7?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/statsprocess.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/statsprocess.py b/scripts/statsprocess.py index 30fe563..44cb6d5 100644 --- a/scripts/statsprocess.py +++ b/scripts/statsprocess.py @@ -87,6 +87,26 @@ def get_player_name(uuid): return response.json().get("name") except Exception: pass + + try: + response = get_session().get( + f"https://littleskin.cn/api/yggdrasil/sessionserver/session/minecraft/profile/{uuid}", + timeout=5, + ) + if response.status_code == 200: + return response.json().get("username") + except Exception: + pass + + try: + response = get_session().get( + f"https://skin.infstar.cn/api/yggdrasil/sessionserver/session/minecraft/profile/{uuid}", + timeout=5, + ) + if response.status_code == 200: + return response.json().get("username") + except Exception: + pass return "Unknown"