mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-08 02:04:04 +08:00
fixed: 前后台的账号体系的冲突
This commit is contained in:
parent
ce1cf5b475
commit
4c085d4836
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user