Merge pull request #134 from serfend/main

fix[group]handle_request reason empty
This commit is contained in:
手瓜一十雪 authored and GitHub committed 2024-07-20 15:24:39 +08:00
commit 239b8e72d9
2 files changed
+2 -2

No files matched your search

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