Refactor IndexController to return a simple message instead of an iframe. Update AudioRecorder and SimpleFileUpload components to include file name in the upload callback. Modify MessageEnter component to handle new file structure and improve message handling logic. Clean up unused state and enhance video message rendering. Update websocket message management to handle message IDs more robustly.

This commit is contained in:
超级老白兔
2025-11-08 15:13:20 +08:00
parent f9c08b6091
commit 35c9369d3d
7 changed files with 162 additions and 186 deletions

View File

@@ -8,25 +8,7 @@ class IndexController
{
public function index(Request $request)
{
return <<<EOF
<style>
* {
padding: 0;
margin: 0;
}
iframe {
border: none;
overflow: scroll;
}
</style>
<iframe
src="https://www.workerman.net/wellcome"
width="100%"
height="100%"
allow="clipboard-write"
sandbox="allow-scripts allow-same-origin allow-popups"
></iframe>
EOF;
return "我是数据中心,有何贵干?";
}
public function view(Request $request)