|
@@ -75,9 +75,9 @@ public class LoginAction {
|
|
if(user==null){
|
|
if(user==null){
|
|
throw new RuntimeException("用户名或密码错误");
|
|
throw new RuntimeException("用户名或密码错误");
|
|
}
|
|
}
|
|
- /*if(user.getState()==0){
|
|
|
|
|
|
+ if(user.getState()==0){
|
|
throw new RuntimeException("账号已被删除");
|
|
throw new RuntimeException("账号已被删除");
|
|
- }*/
|
|
|
|
|
|
+ }
|
|
if(user.getToken()==null||"".equals(user.getToken())){
|
|
if(user.getToken()==null||"".equals(user.getToken())){
|
|
loginService.insertToken(user.getUserId(), token);
|
|
loginService.insertToken(user.getUserId(), token);
|
|
} else {
|
|
} else {
|