Skip to content

Commit

Permalink
build: 1.3.2-beta7
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed May 11, 2024
1 parent 3342673 commit eb065e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core
Submodule core updated from 1177d2 to 5d0e57
4 changes: 2 additions & 2 deletions src/onebot11/constructor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export class OB11Constructor {
resMsg.group_id = parseInt(tempGroupCode);
}
}

for (const element of msg.elements) {
const message_data: OB11MessageData | any = {
data: {},
Expand Down Expand Up @@ -152,10 +151,11 @@ export class OB11Constructor {
// let currentRKey = "CAQSKAB6JWENi5LMk0kc62l8Pm3Jn1dsLZHyRLAnNmHGoZ3y_gDZPqZt-64"

try {
message_data['data']['url'] = await NTQQFileApi.getImageUrl(msg);
message_data['data']['url'] = await NTQQFileApi.getImageUrl(element.picElement, msg.chatType !== ChatType.group);
} catch (e: any) {
logError('获取图片url失败', e.stack);
}
console.log(message_data['data']['url'])
// message_data["data"]["file_id"] = element.picElement.fileUuid
message_data['data']['file_size'] = element.picElement.fileSize;
dbUtil.addFileCache({
Expand Down

0 comments on commit eb065e2

Please sign in to comment.