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, }