From 815d22d50c69276b1077da8b64ccd0bdadd909ec Mon Sep 17 00:00:00 2001 From: "Qumolama.d" Date: Thu, 14 Jul 2022 15:08:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20typo=20=E5=BC=95=E5=8F=91?= =?UTF-8?q?=E7=9A=84=E5=B7=A8=E5=A4=A7bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/player.js | 2 +- src/routes/web-api.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/models/player.js b/src/models/player.js index 654453c..02d4407 100644 --- a/src/models/player.js +++ b/src/models/player.js @@ -122,7 +122,7 @@ export async function getPlayerSerialization(player) { name: player.username, properties: [ { - name: "texturs", + name: "textures", value: val, signature: ImageSecurity.sign(val), } diff --git a/src/routes/web-api.js b/src/routes/web-api.js index fd4d03c..54c7411 100644 --- a/src/routes/web-api.js +++ b/src/routes/web-api.js @@ -274,13 +274,13 @@ export const register = { }) } - const textues = { } + const textures = { } if(textureMigrations) { - textues.skin = textureMigrations.skin ?? defaultSkin + textures.skin = textureMigrations.skin ?? defaultSkin if(textureMigrations.cape != 0 && textureMigrations.cape) { - textues.cape = textureMigrations.cape + textures.cape = textureMigrations.cape } } @@ -311,7 +311,7 @@ export const register = { msg: "邀请码验证失败!非法邀请码!" }) } - if(fields.get('t') !== email) { + if(fields.get('p') !== email) { return await rep.code(200).send({ err: 1.143688, msg: "邀请码验证失败!这邀请码不属于你!" @@ -327,7 +327,7 @@ export const register = { registerDate: Date.now(), permissions: ['login'], binding: { - platform: fields.get('p'), + platform: fields.get('t'), username: fields.get('n'), verified: true, }