main
黄海 10 months ago
parent 5cfc2c1a49
commit 2b3475f537

@ -0,0 +1,8 @@
package com.dsideal.base.Const;
public class ResConst {
public static final Integer SUCCESS = 200;
public static final Integer ERROR = 500;
public static final Integer OVERDUE = 401;
public static final Integer TIMEOUT = 30000;
}

@ -1,32 +0,0 @@
package com.dsideal.base.Const;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class RetBean {
/**
* {
* "code": 200,
* "data": { },
* "msg": "成功"
* }
*/
private int code;
private String msg;
private JSONObject data;
public static final Integer SUCCESS = 200;
public static final Integer ERROR = 500;
public static final Integer OVERDUE = 401;
public static final Integer TIMEOUT = 30000;
public RetBean(int code, String msg, JSONObject data) {
this.code = code;
this.msg = msg;
this.data = data;
}
}

@ -0,0 +1,20 @@
package com.dsideal.base.Const;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
@Setter
@Getter
public class RetJsonArray {
private int code;
private String msg;
private List<Record> data;
public RetJsonArray(int code, String msg, List<Record> list) {
this.code = code;
this.msg = msg;
this.data = list;
}
}

@ -0,0 +1,20 @@
package com.dsideal.base.Const;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
public class RetJsonObject {
private int code;
private String msg;
private JSONObject data;
public RetJsonObject(int code, String msg, JSONObject data) {
this.code = code;
this.msg = msg;
this.data = data;
}
}

@ -2,7 +2,6 @@ package com.dsideal.base.LoginPerson.Controller;
import com.alibaba.fastjson.JSONObject;
import com.dsideal.base.BaseApplication;
import com.dsideal.base.Const.RetBean;
import com.dsideal.base.Interceptor.*;
import com.dsideal.base.LoginPerson.Model.LoginPersonModel;
import com.dsideal.base.Util.*;

@ -333,7 +333,7 @@ public class LoginPersonModel {
//去掉限制
RedisKit.del(PassWordKey);
//防止用户攻击修改Cookie
Map _map = new HashMap<String, String>();
Map _map = new HashMap<String, Object>();
_map.put("identity_id", loginMap.get("identity_id"));
_map.put("person_id", loginMap.get("person_id"));
_map.put("bureau_id", loginMap.get("bureau_id"));

Loading…
Cancel
Save