generated from root/miduo_server
停服脚本, 线程异步优化
parent
44e1c0332a
commit
06f72e173b
|
|
@ -391,6 +391,7 @@ public class OrderInfoController {
|
|||
}
|
||||
return "findOrder";
|
||||
}
|
||||
|
||||
@RequestMapping(value = "toExporOrderPage",method = RequestMethod.GET)
|
||||
public String toExporOrderPage(ModelMap map){
|
||||
List<gameName> allGameName = null;
|
||||
|
|
@ -403,15 +404,11 @@ public class OrderInfoController {
|
|||
return "exporOrder";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static boolean isNumeric(String str) {
|
||||
try {
|
||||
new BigDecimal(str).toString();
|
||||
} catch (Exception e) {
|
||||
return false;//异常
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,10 +129,8 @@ public class ServerInfoController {
|
|||
|
||||
ServerInfo info = serverInfoDao.getServerinfo(server_id);
|
||||
if (info != null && "-2".equals(info.getStatus())){
|
||||
int delUser = delUser(info);
|
||||
if (delUser != 0){
|
||||
return "404";
|
||||
}
|
||||
Thread thread = new Thread(()-> delUser(info));
|
||||
thread.start();
|
||||
}
|
||||
|
||||
serverInfoDao.updateServerInfo(server_id, status, 0, isnew, name,register_state);
|
||||
|
|
@ -261,7 +259,7 @@ public class ServerInfoController {
|
|||
System.err.printf("删除操作参数不全,执行失败:参数:%s",serverInfo.toString());
|
||||
return wait;
|
||||
}
|
||||
String command = "sh " + path + " 210 " + serverInfo.getIP() + " " + serverInfo.getServer_id() + " " + serverInfo.getCoreName();
|
||||
String command = "sh " + path + " 500 " + serverInfo.getIP() + " " + serverInfo.getServer_id() + " " + serverInfo.getCoreName();
|
||||
List<String> processList = new ArrayList<>();
|
||||
try {
|
||||
Process exec = Runtime.getRuntime().exec(command);
|
||||
|
|
|
|||
Loading…
Reference in New Issue