mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-07 17:55:59 +08:00
fixed: 前后台的账号体系的冲突
This commit is contained in:
parent
ce1cf5b475
commit
4c085d4836
@ -26,11 +26,12 @@ import java.util.HashMap;
|
||||
|
||||
@Service
|
||||
public class BackendAuthServiceImpl implements BackendAuthService {
|
||||
@Autowired private AuthService authService;
|
||||
@Autowired
|
||||
private AuthService authService;
|
||||
|
||||
@Override
|
||||
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
|
||||
@ -40,7 +41,7 @@ public class BackendAuthServiceImpl implements BackendAuthService {
|
||||
|
||||
@Override
|
||||
public Integer userId() {
|
||||
return authService.userId();
|
||||
return authService.userId() - 100000000;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user