fix(album): restore comments and support batch targets
Initialize comment like data required by QQNT and allow comments on upload batches while preserving single-image targets. Add action and native argument conversion regression tests. Fixes #1979. Closes #2028.
This commit is contained in:
1 parent
bbd0d2aca3
commit
3f66b36901
5 files changed
+252
-15
No files matched your search
@@ -678,8 +678,9 @@ export class NTQQWebApi {
|
||||
async doAlbumMediaPlainCommentByNTQQ (
|
||||
qunId: string,
|
||||
albumId: string,
|
||||
lloc: string,
|
||||
content: string) {
|
||||
lloc: string | undefined,
|
||||
content: string,
|
||||
batchId: string = '') {
|
||||
const random_seq = Math.floor(Math.random() * 9000) + 1000;
|
||||
const uin = this.core.selfInfo.uin || '10001';
|
||||
// 16位number数字
|
||||
@@ -692,7 +693,7 @@ export class NTQQWebApi {
|
||||
},
|
||||
qunId,
|
||||
2,
|
||||
createAlbumMediaFeed(uin, albumId, lloc),
|
||||
createAlbumMediaFeed(uin, albumId, lloc, batchId),
|
||||
createAlbumCommentRequest(uin, content, client_key)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user