Merge pull request #29 from mikezom/supportUID2

enka is now supporting UIDs starting with 2
This commit is contained in:
Kokomi 2022-06-10 04:25:01 +08:00 committed by GitHub
commit b3f327ba45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 || "请求错误,请稍后重试"}`);