1. 修复 userinfo 过多导致的用户登录失败错误

This commit is contained in:
chenbowen
2025-11-13 18:44:28 +08:00
parent 1a34cbc678
commit c1f12dfe5e
4 changed files with 104 additions and 10 deletions

View File

@@ -152,9 +152,9 @@ class BusinessHeaderInterceptorTest {
setLoginUserForTest(loginUser);
boolean result = interceptor.preHandle(request, response, handlerMethod);
assertFalse(result);
// 可选:verify(request).setAttribute("visit-company-id", String.valueOf(deptInfo.getCompanyId()));
// 可选:verify(request).setAttribute("visit-dept-id", String.valueOf(deptInfo.getDeptId()));
assertTrue(result);
verify(request).setAttribute(eq("visit-company-id"), eq(deptInfo.getCompanyId()));
verify(request).setAttribute(eq("visit-dept-id"), eq(deptInfo.getDeptId()));
}
/**