diff --git a/api/health b/api/health index 3086a40..cd3b109 160000 --- a/api/health +++ b/api/health @@ -1 +1 @@ -Subproject commit 3086a40b4c35871abead8b810093cd4a9c23ea0a +Subproject commit cd3b1097303999704f86d1b136fbab14003efb11 diff --git a/api/user b/api/user index 5fabb6b..efd4e44 160000 --- a/api/user +++ b/api/user @@ -1 +1 @@ -Subproject commit 5fabb6ba864cb98fb2f04f487fefcaa5228b9a58 +Subproject commit efd4e4444cf7975495f6d1125cab866f79ba6729 diff --git a/doc/architecture-overview.html b/doc/architecture-overview.html index 1a932a0..a03183d 100644 --- a/doc/architecture-overview.html +++ b/doc/architecture-overview.html @@ -835,7 +835,7 @@
userInfo 返回的 apps 中存在 wxapp-escort-admin 或 web-escort-admin,roles 含 admin 且未停用;过渡期兼容旧 app 字段userInfo 返回的 apps 中存在 wxapp_companion 或 web-escort-admin,roles 含 admin 且未停用;过渡期兼容旧 app 字段employee.userId 建 partial unique 索引(仅约束 ObjectId 类型),一人最多一条员工档案;换微信号走人工改绑,不自动合并。employee.userIdSource 记录绑定来源:manual / application,可追溯。employeeNo 为 unique + sparse,不能设默认空串;建档路径显式生成 ATT{yyyyMMdd}{4位随机},撞号换号重试。user.apps 中有 wxapp-escort-admin 只代表“进过陪诊师端”;attendant_application 代表“申请过程”;employee(attendant + active)才代表权限。user.apps 中有 wxapp_companion 只代表“进过陪诊师端”;attendant_application 代表“申请过程”;employee(attendant + active)才代表权限。