mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-12-19 05:05:44 +08:00
fix: id生成使用uuid
This commit is contained in:
parent
f9ef3d63c7
commit
19b47f0f42
@ -40,8 +40,7 @@ export const LogRealTimeHandler: RequestHandler = async (req, res) => {
|
||||
// 终端相关处理器
|
||||
export const CreateTerminalHandler: RequestHandler = async (req, res) => {
|
||||
try {
|
||||
const id = Math.random().toString(36).substring(2);
|
||||
terminalManager.createTerminal(id);
|
||||
const { id } = terminalManager.createTerminal();
|
||||
return sendSuccess(res, { id });
|
||||
} catch (error) {
|
||||
console.error('Failed to create terminal:', error);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user