|
@@ -76,9 +76,9 @@ public class LoginAction {
|
|
|
if(user==null){
|
|
|
throw new RuntimeException("用户名或密码错误");
|
|
|
}
|
|
|
- if(user.getState()==0){
|
|
|
- throw new RuntimeException("账号已停用,请联系管理员");
|
|
|
- }
|
|
|
+// if(user.getState()==0){
|
|
|
+// throw new RuntimeException("账号已停用,请联系管理员");
|
|
|
+// }
|
|
|
if(user.getToken()==null||"".equals(user.getToken())){
|
|
|
loginService.insertToken(user.getUserId(), token);
|
|
|
} else {
|