修复 typo 引发的巨大bug
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Qumolama.d 2022-07-14 15:08:24 +08:00
parent 9fb90bef0e
commit 815d22d50c
Signed by: Lama3L9R
GPG Key ID: 1762AFC05157CE18
2 changed files with 6 additions and 6 deletions

View File

@ -122,7 +122,7 @@ export async function getPlayerSerialization(player) {
name: player.username, name: player.username,
properties: [ properties: [
{ {
name: "texturs", name: "textures",
value: val, value: val,
signature: ImageSecurity.sign(val), signature: ImageSecurity.sign(val),
} }

View File

@ -274,13 +274,13 @@ export const register = {
}) })
} }
const textues = { } const textures = { }
if(textureMigrations) { if(textureMigrations) {
textues.skin = textureMigrations.skin ?? defaultSkin textures.skin = textureMigrations.skin ?? defaultSkin
if(textureMigrations.cape != 0 && textureMigrations.cape) { if(textureMigrations.cape != 0 && textureMigrations.cape) {
textues.cape = textureMigrations.cape textures.cape = textureMigrations.cape
} }
} }
@ -311,7 +311,7 @@ export const register = {
msg: "邀请码验证失败!非法邀请码!" msg: "邀请码验证失败!非法邀请码!"
}) })
} }
if(fields.get('t') !== email) { if(fields.get('p') !== email) {
return await rep.code(200).send({ return await rep.code(200).send({
err: 1.143688, err: 1.143688,
msg: "邀请码验证失败!这邀请码不属于你!" msg: "邀请码验证失败!这邀请码不属于你!"
@ -327,7 +327,7 @@ export const register = {
registerDate: Date.now(), registerDate: Date.now(),
permissions: ['login'], permissions: ['login'],
binding: { binding: {
platform: fields.get('p'), platform: fields.get('t'),
username: fields.get('n'), username: fields.get('n'),
verified: true, verified: true,
} }