fixed: 前后台的账号体系的冲突

This commit is contained in:
none 2023-07-03 17:28:45 +08:00
parent ce1cf5b475
commit 4c085d4836

View File

@ -26,11 +26,12 @@ import java.util.HashMap;
@Service @Service
public class BackendAuthServiceImpl implements BackendAuthService { public class BackendAuthServiceImpl implements BackendAuthService {
@Autowired private AuthService authService; @Autowired
private AuthService authService;
@Override @Override
public String loginUsingId(Integer userId, String loginUrl) { public String loginUsingId(Integer userId, String loginUrl) {
return authService.loginUsingId(userId, loginUrl, SystemConstant.JWT_PRV_ADMIN_USER); return authService.loginUsingId(100000000 + userId, loginUrl, SystemConstant.JWT_PRV_ADMIN_USER);
} }
@Override @Override
@ -40,7 +41,7 @@ public class BackendAuthServiceImpl implements BackendAuthService {
@Override @Override
public Integer userId() { public Integer userId() {
return authService.userId(); return authService.userId() - 100000000;
} }
@Override @Override