Skip to content

Commit

Permalink
添加虚拟终端消息响应
Browse files Browse the repository at this point in the history
  • Loading branch information
HalcyonAlcedo committed Jun 19, 2024
1 parent 7e5969c commit f4a4fe3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/utils/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ export const adapterHandle = (adapter, data) => {
message: msg,
image
})
adapter.sendMessage(JSON.stringify({
status: 'ok',
retcode: 0,
data: {
message_id: parseInt(Math.floor(Date.now() / 1000).toString().slice(0, 9), 10)
},
echo: echo
}))
break;
case 'send_private_msg':
for (const message of data.params.message) {
Expand All @@ -108,6 +116,14 @@ export const adapterHandle = (adapter, data) => {
message: msg,
image
})
adapter.sendMessage(JSON.stringify({
status: 'ok',
retcode: 0,
data: {
message_id: parseInt(Math.floor(Date.now() / 1000).toString().slice(0, 9), 10)
},
echo: echo
}))
break;
default:
if (data.action) {
Expand Down

0 comments on commit f4a4fe3

Please sign in to comment.