perf: 优化消息组件

This commit is contained in:
kuaifan
2024-10-16 14:27:30 +08:00
parent ae587950b9
commit e0a108eb2e
36 changed files with 777 additions and 338 deletions

View File

@@ -949,7 +949,7 @@ class WebSocketDialogMsg extends AbstractModel
];
}
} else {
if ($dialogMsg->type !== 'text') {
if (!in_array($dialogMsg->type, ['text', 'template'])) {
throw new ApiException('此消息不支持此操作');
}
if ($dialogMsg->userid != $sender) {