添加新状态

master
duhui 2022-06-22 09:38:02 +08:00
parent ba380b6bf7
commit e2cd2e3d30
2 changed files with 3 additions and 3 deletions

View File

@ -311,7 +311,7 @@ public class ServerInfoController {
if (status.equals("-5")){
serverInfoDao.updateServerInfo(id, "1");
GMHandler.sendGm(id,"kick 0");
}else {
}else if (!status.equals("-999")){
// 修改服务器信息
serverInfoDao.updateServerInfo(id, status);
}

View File

@ -46,7 +46,7 @@
<option th:each="server:${serverInfos}" th:if="${server.getStatus() != '-2'}" th:value="${server.getServer_id()}"
th:text="${server.getServer_id()}+'-'+${server.getName()}"></option>
</select>
<select name="status2" class="input-text" id="status2" title="服务器状态,请选择不会进行修改" style="width: 80px;"><!--下拉列表-->
<select name="status2" class="input-text" id="status2" title="服务器状态,请选择不会进行修改" style="width: 80px;"><!--下拉列表-->
<option value="-999">请选择</option>
<option value="-5">维护并踢全部玩家下线</option>
<option value="0">关闭</option>
@ -55,7 +55,7 @@
<option value="3">拥挤</option>
<option value="4">爆满</option>
</select>
<input type="text" id="crossId2" style="width: 55px;" title="跨服id,不填写或者中文不会进行修改" class="input-text"/>
<input type="text" id="crossId2" style="width: 55px;" title="跨服id,《空或者非整数》不会进行修改" class="input-text"/>
<button class="btn btn-primary" type="button" onclick="updateServers()">批量修改</button>
<div style="float: right">
刷新服务器缓存:【<a href="/findServerInfoNotCache">刷新</a>