玩家信息查询增加ip展示

jieling
grimm 2024-07-19 14:44:05 +08:00
parent 38d0983e77
commit e59ba23298
4 changed files with 28 additions and 15 deletions

View File

@ -164,6 +164,7 @@ public class UserInfoController {
cUserVo.setReality_rmb(rmb);
cUserVo.setCreateTime(JsonUtil.timeStamp2Date(String.valueOf(gsUser.getPlayerManager().getCreateTime())));
cUserVo.setOutLineTime(JsonUtil.timeStamp2Date(String.valueOf(gsUser.getPlayerManager().getOffLineTime())));
cUserVo.setIp(gsUser.getPlayerManager().getIp());
}
return cUserVo;
}

View File

@ -88,6 +88,8 @@ public class GSPlayerManagerBean {
private int silence;//是否被禁言0为可发言1为不可发言
private String ip;//ip
private Set<Integer> sysMailIds = new CopyOnWriteArraySet<>();
@ -412,4 +414,12 @@ public class GSPlayerManagerBean {
public void setNewRechargeInfo(GsNewRechargeInfoBean newRechargeInfo) {
this.newRechargeInfo = newRechargeInfo;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
}

View File

@ -2,28 +2,20 @@ package com.jmfy.model.vo;
public class CUserVo implements java.io.Serializable {
public int isData; // 是否有数据 0没有 1
public int isData; // 是否有数据 0没有 1
public int userId;
public String openID;
public String serverId;
public String userName;
public int level ;
public long gem;//宝石
public long gold;//金币
public long curStamina;//体力
public double save_amt; //目前儲值
public double reality_rmb; //真是储值
public String createTime; //创建时间
public String outLineTime; //离线时间
public String ip;//ip地址
public String getOpenID() {
return openID;
@ -74,6 +66,14 @@ public class CUserVo implements java.io.Serializable {
this.reality_rmb = reality_rmb;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}

View File

@ -33,9 +33,10 @@
<table class="table table-border table-bordered table-bg table-hover table-sort table-responsive" width="10000px">
<thead>
<tr class="text-c">
<th width="500">ID</th>
<th width="500">openID</th>
<th width="500">serverID</th>
<th width="200">ID</th>
<th width="200">openID</th>
<th width="200">serverID</th>
<th width="500">IP</th>
<th width="500">角色名</th>
<th width="200">等級</th>
<th width="200">妖精</th>
@ -43,8 +44,8 @@
<th width="200">成长护符</th>
<th width="200">目前儲值</th>
<th width="200">真实儲值</th>
<th width="1000">創角時間</th>
<th width="800">最近登出時間</th>
<th width="500">創角時間</th>
<th width="500">最近登出時間</th>
</tr>
</thead>
<tbody>
@ -59,6 +60,7 @@
<td th:text="${cUserVo.userId}" style="text-align: center;"></td>
<td th:text="${cUserVo.openID}" style="text-align: center;"></td>
<td th:text="${cUserVo.serverId}" style="text-align: center;"></td>
<td th:text="${cUserVo.ip}" style="text-align: center;"></td>
<td th:text="${cUserVo.userName}" style="text-align: center;"></td>
<td th:text="${cUserVo.level}" style="text-align: center;"></td>
<td th:text="${cUserVo.gem}" style="text-align: center;"></td>