From 814a58b3067fafc6b5b7bcf564e8d05fcf8208cd Mon Sep 17 00:00:00 2001 From: lik Date: Wed, 11 Nov 2026 21:03:44 +0800 Subject: [PATCH] =?UTF-8?q?feat(attendant):=20=E5=85=AC=E7=A4=BA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=BF=94=E5=9B=9E=E9=99=AA=E8=AF=8A=E5=B8=88=E7=9C=9F?= =?UTF-8?q?=E5=AE=9E=E5=A7=93=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户下单前需要按姓名指定陪诊师,公示列表不再脱敏;共享候选等内部接口的姓名口径保持不变。 --- handler/employee.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/handler/employee.js b/handler/employee.js index 330cdd8..e6dde1c 100644 --- a/handler/employee.js +++ b/handler/employee.js @@ -58,13 +58,6 @@ class HandlerEmployee { return { stage, grade, star }; } - // 姓名脱敏:只留姓 + 「陪诊师」,不给全名,降低私下联系(跳单)的可能 - static maskName(name) { - const trimmed = String(name || "").trim(); - if (!trimmed) return "陪诊师"; - return trimmed.slice(0, 1) + "陪诊师"; - } - // 日期 → YYYY-MM-DD;无值或非法值返回空串,前端按空串隐藏该行 static formatDate(value) { if (!value) return ""; @@ -107,7 +100,7 @@ class HandlerEmployee { return { id: employee._id, - name: HandlerEmployee.maskName(profile.name), + name: profile.name || "陪诊师", avatar: profile.avatar || "", sex: profile.sex || "", // 年龄由前端换算,这里只下发原料。刻意走 formatDate 而不是原始 Date: @@ -202,7 +195,7 @@ class HandlerEmployee { } // 共享候选名单:所有在职陪诊师(含实习),供接单陪诊师把订单共享出去。 - // 与公示接口不同:这里不做姓名脱敏,也不排除实习,但必须本人是在职陪诊师。 + // 不排除实习,但必须本人是在职陪诊师。 async getShareableAttendants(ctx) { try { const userId = ctx.state.user?._id;