Commit c1acf8d0 authored by Quxl's avatar Quxl

xxx

parent 65280aef
...@@ -109,8 +109,9 @@ public class AdminTokenServiceImpl implements AdminTokenService { ...@@ -109,8 +109,9 @@ public class AdminTokenServiceImpl implements AdminTokenService {
String prefix = path.split("/")[1]; String prefix = path.split("/")[1];
String content = JSON.toJSONString(request.getParameterMap()); String content = JSON.toJSONString(request.getParameterMap());
String ip = ServletUtil.remoteIp(request); String ip = ServletUtil.remoteIp(request);
String sql = "insert into fc_logs (type, loginid, prefix, path, ip, content, create_time) values (?, ?, ?, ?, ?, ?, ?)"; String user_agent = request.getHeader("User-Agent");
Object[] objs = new Object[]{LOG_TYPE, loginid, prefix, path, ip, content, now}; String sql = "insert into fc_logs (type, loginid, prefix, path, ip, content, user_agent, create_time) values (?, ?, ?, ?, ?, ?, ?, ?)";
Object[] objs = new Object[]{LOG_TYPE, loginid, prefix, path, ip, content, user_agent, now};
jdbcTemplate.executeUpdate(sql, objs); jdbcTemplate.executeUpdate(sql, objs);
} }
......
...@@ -113,8 +113,9 @@ public class MemberTokenServiceImpl implements MemberTokenService { ...@@ -113,8 +113,9 @@ public class MemberTokenServiceImpl implements MemberTokenService {
String prefix = path.split("/")[1]; String prefix = path.split("/")[1];
String content = JSON.toJSONString(request.getParameterMap()); String content = JSON.toJSONString(request.getParameterMap());
String ip = ServletUtil.remoteIp(request); String ip = ServletUtil.remoteIp(request);
String sql = "insert into fc_logs (type, loginid, prefix, path, ip, content, create_time) values (?, ?, ?, ?, ?, ?, ?)"; String user_agent = request.getHeader("User-Agent");
Object[] objs = new Object[]{LOG_TYPE, loginid, prefix, path, ip, content, now}; String sql = "insert into fc_logs (type, loginid, prefix, path, ip, content, user_agent, create_time) values (?, ?, ?, ?, ?, ?, ?, ?)";
Object[] objs = new Object[]{LOG_TYPE, loginid, prefix, path, ip, content, user_agent, now};
jdbcTemplate.executeUpdate(sql, objs); jdbcTemplate.executeUpdate(sql, objs);
} }
......
...@@ -104,8 +104,9 @@ public class UserTokenServiceImpl implements UserTokenService { ...@@ -104,8 +104,9 @@ public class UserTokenServiceImpl implements UserTokenService {
String prefix = path.split("/")[1]; String prefix = path.split("/")[1];
String content = JSON.toJSONString(request.getParameterMap()); String content = JSON.toJSONString(request.getParameterMap());
String ip = ServletUtil.remoteIp(request); String ip = ServletUtil.remoteIp(request);
String sql = "insert into fc_logs (type, loginid, prefix, path, ip, content, create_time) values (?, ?, ?, ?, ?, ?, ?)"; String user_agent = request.getHeader("User-Agent");
Object[] objs = new Object[]{LOG_TYPE, loginid, prefix, path, ip, content, now}; String sql = "insert into fc_logs (type, loginid, prefix, path, ip, content, user_agent, create_time) values (?, ?, ?, ?, ?, ?, ?, ?)";
Object[] objs = new Object[]{LOG_TYPE, loginid, prefix, path, ip, content, user_agent, now};
jdbcTemplate.executeUpdate(sql, objs); jdbcTemplate.executeUpdate(sql, objs);
} }
} }
...@@ -45,21 +45,11 @@ public class Fc_admin_group implements java.io.Serializable { ...@@ -45,21 +45,11 @@ public class Fc_admin_group implements java.io.Serializable {
*/ */
private Integer state; private Integer state;
/**
* 权限
*/
private String power;
/** /**
* 成员数量 * 成员数量
*/ */
private Long user_num; private Long user_num;
/**
* 群组权限
*/
private String group_power;
/** /**
* 无参数构造方法 * 无参数构造方法
...@@ -76,20 +66,16 @@ public class Fc_admin_group implements java.io.Serializable { ...@@ -76,20 +66,16 @@ public class Fc_admin_group implements java.io.Serializable {
* @param create_ip 创建者ip * @param create_ip 创建者ip
* @param adminid 创建者uid * @param adminid 创建者uid
* @param state 小组状态 * @param state 小组状态
* @param power 权限
* @param user_num 成员数量 * @param user_num 成员数量
* @param group_power 群组权限
*/ */
public Fc_admin_group(Integer group_id, String group_name, Long create_time, String create_ip, Integer adminid, Integer state, String power, Long user_num, String group_power) { public Fc_admin_group(Integer group_id, String group_name, Long create_time, String create_ip, Integer adminid, Integer state, Long user_num) {
this.group_id = group_id; this.group_id = group_id;
this.group_name = group_name; this.group_name = group_name;
this.create_time = create_time; this.create_time = create_time;
this.create_ip = create_ip; this.create_ip = create_ip;
this.adminid = adminid; this.adminid = adminid;
this.state = state; this.state = state;
this.power = power;
this.user_num = user_num; this.user_num = user_num;
this.group_power = group_power;
} }
public void setGroup_id(Integer group_id) { public void setGroup_id(Integer group_id) {
...@@ -140,14 +126,6 @@ public class Fc_admin_group implements java.io.Serializable { ...@@ -140,14 +126,6 @@ public class Fc_admin_group implements java.io.Serializable {
return state; return state;
} }
public void setPower(String power) {
this.power = power;
}
public String getPower() {
return power;
}
public void setUser_num(Long user_num) { public void setUser_num(Long user_num) {
this.user_num = user_num; this.user_num = user_num;
} }
...@@ -156,13 +134,5 @@ public class Fc_admin_group implements java.io.Serializable { ...@@ -156,13 +134,5 @@ public class Fc_admin_group implements java.io.Serializable {
return user_num; return user_num;
} }
public void setGroup_power(String group_power) {
this.group_power = group_power;
}
public String getGroup_power() {
return group_power;
}
} }
...@@ -31,6 +31,8 @@ public class Fc_logs implements java.io.Serializable { ...@@ -31,6 +31,8 @@ public class Fc_logs implements java.io.Serializable {
private String content; private String content;
private String user_agent;
private Date create_time; private Date create_time;
...@@ -50,9 +52,10 @@ public class Fc_logs implements java.io.Serializable { ...@@ -50,9 +52,10 @@ public class Fc_logs implements java.io.Serializable {
* @param path * @param path
* @param ip * @param ip
* @param content * @param content
* @param user_agent
* @param create_time * @param create_time
*/ */
public Fc_logs(Long id, String type, String loginid, String prefix, String path, String ip, String content, Date create_time) { public Fc_logs(Long id, String type, String loginid, String prefix, String path, String ip, String content, String user_agent, Date create_time) {
this.id = id; this.id = id;
this.type = type; this.type = type;
this.loginid = loginid; this.loginid = loginid;
...@@ -60,6 +63,7 @@ public class Fc_logs implements java.io.Serializable { ...@@ -60,6 +63,7 @@ public class Fc_logs implements java.io.Serializable {
this.path = path; this.path = path;
this.ip = ip; this.ip = ip;
this.content = content; this.content = content;
this.user_agent = user_agent;
this.create_time = create_time; this.create_time = create_time;
} }
...@@ -119,6 +123,14 @@ public class Fc_logs implements java.io.Serializable { ...@@ -119,6 +123,14 @@ public class Fc_logs implements java.io.Serializable {
return content; return content;
} }
public void setUser_agent(String user_agent) {
this.user_agent = user_agent;
}
public String getUser_agent() {
return user_agent;
}
public void setCreate_time(Date create_time) { public void setCreate_time(Date create_time) {
this.create_time = create_time; this.create_time = create_time;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment