附件图片双击放大显示

This commit is contained in:
2026-07-22 15:12:14 +08:00
parent 1889b3b71b
commit 2feb6004b8
2 changed files with 33 additions and 3 deletions

View File

@@ -236,7 +236,7 @@ app.get('/api/rooms/:roomId/purchases/export', auth, (req, res) => {
// WebSocket
const clients = new Map();
wss.on('connection', (ws, req) => {
//console.log('✅ WebSocket 客户端已连接');
console.log('✅ WebSocket 客户端已连接');
const url = new URL(req.url, 'http://localhost');
const token = url.searchParams.get('token');
if (!token) return ws.close();