Skip to content

Commit 5ddc9dc

Browse files
committed
fix
1 parent 5ea66f3 commit 5ddc9dc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/ntqqapi/api/group.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export class NTQQGroupApi extends Service {
288288
infos: Map<string, GroupMember>
289289
]>(
290290
'nodeIKernelGroupService/searchMember',
291-
[ sceneId, keyword ],
291+
[sceneId, keyword],
292292
{
293293
resultCmd: 'nodeIKernelGroupListener/onSearchMemberChange',
294294
resultCb: payload => {
@@ -322,13 +322,13 @@ export class NTQQGroupApi extends Service {
322322
}
323323

324324
async moveGroupFile(groupId: string, fileIdList: string[], curFolderId: string, dstFolderId: string) {
325-
return await invoke('nodeIKernelRichMediaService/moveGroupFile', [{
325+
return await invoke('nodeIKernelRichMediaService/moveGroupFile', [
326326
groupId,
327+
[102],
327328
fileIdList,
328329
curFolderId,
329-
dstFolderId,
330-
busIdList: [102],
331-
}])
330+
dstFolderId
331+
])
332332
}
333333

334334
async getGroupShutUpMemberList(groupCode: string) {
@@ -354,7 +354,7 @@ export class NTQQGroupApi extends Service {
354354
])
355355
}
356356

357-
async setGroupFileForever(groupId: string, fileId: string){
357+
async setGroupFileForever(groupId: string, fileId: string) {
358358
return await invoke('nodeIKernelRichMediaService/transGroupFile', [
359359
groupId,
360360
fileId

src/onebot11/action/llonebot/file/MoveGroupFile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export class MoveGroupFile extends BaseAction<Payload, null> {
2020
async _handle(payload: Payload) {
2121
const groupId = payload.group_id.toString()
2222
const res = await this.ctx.ntGroupApi.moveGroupFile(groupId, [payload.file_id], payload.parent_directory, payload.target_directory)
23-
if (res.result !== 0) {
24-
throw new Error(res.errMsg)
23+
if (res.moveGroupFileResult.result.retCode !== 0) {
24+
throw new Error(res.moveGroupFileResult.result.clientWording)
2525
}
2626
return null
2727
}

0 commit comments

Comments
 (0)