删除重复代码

This commit is contained in:
CrescentLeaf
2025-12-28 00:20:20 +08:00
parent aa8a205e5f
commit d4d28c2760

View File

@@ -144,10 +144,6 @@ export default class UserApi extends BaseApi {
msg: "参数缺失", msg: "参数缺失",
code: 400, code: 400,
} }
if (this.checkArgsEmpty(args, ['nickname', 'password'])) return {
msg: "参数不得为空",
code: 400,
}
const username: string | null = args.username as string const username: string | null = args.username as string
const nickname: string = args.nickname as string const nickname: string = args.nickname as string