chore: extend get兼容

This commit is contained in:
手瓜一十雪 committed 2024-08-14 23:56:45 +08:00
1 parent 47cafd295b
commit 5770fc02a1
5 files changed
+17 -19

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ const SchemaData = {
properties: {
nick: { type: 'string' },
longNick: { type: 'string' },
sex: { type: 'number' },//传Sex值?建议传0
sex: { type: ['number', 'string'] },//传Sex值?建议传0
},
required: ['nick', 'longNick', 'sex'],
} as const satisfies JSONSchema;
@@ -23,7 +23,7 @@ export class SetSelfProfile extends BaseAction<Payload, any | null> {
const ret = await NTQQUserApi.modifySelfProfile({
nick: payload.nick,
longNick: payload.longNick,
sex: payload.sex,
sex: parseInt(payload.sex.toString()),
birthday: { birthday_year: '', birthday_month: '', birthday_day: '' },
location: undefined,
});