fix[group]handle_request reason empty

This commit is contained in:
汉广 2024-07-20 14:16:07 +08:00
parent aaf7191bf3
commit 9ab7f60544
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ export class NTQQGroupApi {
'seq': seq, // 通知序列号
'type': type,
'groupCode': groupCode,
'postscript': reason || ''
'postscript': reason || ' ' // 仅传空值可能导致处理失败,故默认给个空格
}
});
}

View File

@ -9,7 +9,7 @@ const SchemaData = {
properties: {
flag: { type: 'string' },
approve: { type: ['string', 'boolean'] },
reason: { type: 'string' }
reason: { type: 'string', nullable: true, }
},
required: ['flag'],
} as const satisfies JSONSchema;