Skip to content

Commit

Permalink
fix: #628
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Dec 16, 2024
1 parent 116e8fd commit 2a9bc57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onebot/network/active-http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter {
}

const data = await RequestUtil.HttpGetText(this.config.url, 'POST', msgStr, headers);
const resJson: QuickAction = JSON.parse(data);
const resJson: QuickAction = data ? JSON.parse(data) : {};
await this.obContext.apis.QuickActionApi.handleQuickOperation(event as QuickActionEvent, resJson);
}

Expand Down

0 comments on commit 2a9bc57

Please sign in to comment.