feat(login): 非正常账户不可登录

This commit is contained in:
禾几海
2020-08-31 12:45:49 +08:00
parent 7f17c20e01
commit a59bb7f231
4 changed files with 58 additions and 2 deletions

View File

@@ -22,6 +22,12 @@ public class MyException extends RuntimeException {
this.code = e.getCode();
}
public MyException(ResponseEnum e, Object result) {
super(e.getMsg());
this.code = e.getCode();
this.result = result;
}
public MyException(ResponseEnum e, String msg) {
super(msg + e.getMsg());
this.code = e.getCode();