fix: 检查凭据时同步姓名和公司

This commit is contained in:
Nixevol
2026-11-18 11:58:11 +08:00
parent 199960276a
commit 66b4d74ba8
4 changed files with 41 additions and 3 deletions
+1 -1
View File
@@ -478,7 +478,7 @@ def _profile_text(value: object, limit: int) -> str:
def _remember_profile(db: Session, employee_id: str, payload: dict) -> None:
"""首页已经取到姓名和部门时,顺手写回用户列表。不记录职级。"""
"""首页或凭据检查已经取到姓名和部门时,顺手写回用户列表。不记录职级。"""
if not isinstance(payload, dict):
return
name = _profile_text(payload.get("name"), 64)