修复了诸多问题

This commit is contained in:
2026-06-16 00:17:36 +08:00
parent 3dc03f6fe5
commit 0767e23f11
32 changed files with 167 additions and 166 deletions

View File

@@ -50,7 +50,7 @@ class ConnectionManager {
}
if (identityType === 'dashou' && !userId.startsWith('Ds')) {
throw new Error(`打手身份的用户ID必须以Ds开头实际为 ${userId}`);
throw new Error(`接单员身份的用户ID必须以Ds开头实际为 ${userId}`);
}
if (identityType === 'shangjia' && !userId.startsWith('Sj')) {
throw new Error(`商家身份的用户ID必须以Sj开头实际为 ${userId}`);
@@ -104,7 +104,7 @@ class ConnectionManager {
// 校验 userId 前缀
if (identityType === 'dashou' && !userId.startsWith('Ds')) {
throw new Error(`打手身份的用户ID必须以Ds开头实际为 ${userId}`);
throw new Error(`接单员身份的用户ID必须以Ds开头实际为 ${userId}`);
}
if (identityType === 'shangjia' && !userId.startsWith('Sj')) {
throw new Error(`商家身份的用户ID必须以Sj开头实际为 ${userId}`);