From 60ac2095ebaee74812f5533b203ababa3f48e338 Mon Sep 17 00:00:00 2001 From: mikezom Date: Thu, 9 Jun 2022 23:42:20 +0800 Subject: [PATCH] enka is now supporting UIDs starting with 2 --- components/Profile.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/Profile.js b/components/Profile.js index 45e3696c..dd0a08d6 100644 --- a/components/Profile.js +++ b/components/Profile.js @@ -53,9 +53,7 @@ let Profile = { let req = await fetch(api); data = await req.json(); if (!data.playerInfo) { - if ((uid + '')[0] === '2') { - e.reply(`请求失败:暂时不支持以2开头的UID角色面板更新,请等待服务后续升级`); - } else if ((uid + '')[0] === '5') { + if ((uid + '')[0] === '5') { e.reply(`请求失败:暂时不支持B服角色面板更新,请等待服务后续升级`); } else { e.reply(`请求失败:${data.msg || "请求错误,请稍后重试"}`);