enka is now supporting UIDs starting with 2

This commit is contained in:
mikezom 2022-06-09 23:42:20 +08:00
parent e503488a7e
commit 60ac2095eb

View File

@ -53,9 +53,7 @@ let Profile = {
let req = await fetch(api); let req = await fetch(api);
data = await req.json(); data = await req.json();
if (!data.playerInfo) { if (!data.playerInfo) {
if ((uid + '')[0] === '2') { if ((uid + '')[0] === '5') {
e.reply(`请求失败:暂时不支持以2开头的UID角色面板更新请等待服务后续升级`);
} else if ((uid + '')[0] === '5') {
e.reply(`请求失败:暂时不支持B服角色面板更新请等待服务后续升级`); e.reply(`请求失败:暂时不支持B服角色面板更新请等待服务后续升级`);
} else { } else {
e.reply(`请求失败:${data.msg || "请求错误,请稍后重试"}`); e.reply(`请求失败:${data.msg || "请求错误,请稍后重试"}`);