修复了诸多问题

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

@@ -30,7 +30,7 @@ async function dashoujianquan(app) {
mask: true
});
await new Promise(r => setTimeout(r, 2100));
return { allowed: false, reason: '打手消息权限被限制' };
return { allowed: false, reason: '接单员消息权限被限制' };
}
}
throw new Error(res.data?.msg || '鉴权接口异常');

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}`);