• R/O
  • SSH

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版74bd1076c98729d76da45aa3c9c8370941f2bff6 (tree)
时间2019-02-03 23:33:37
作者sebastian_bugiu <sebastian_ <bugiu@head...>
Commitersebastian_bugiu <sebastian_

Log Message

Adding lobby support.

更改概述

差异

diff -r d06e7b8c1907 -r 74bd1076c987 src/headwayEnt/headwayEnt/Blackhole_Darksun_WebServer/Main.java
--- a/src/headwayEnt/headwayEnt/Blackhole_Darksun_WebServer/Main.java Tue Jan 29 22:19:30 2019 +0200
+++ b/src/headwayEnt/headwayEnt/Blackhole_Darksun_WebServer/Main.java Sun Feb 03 16:33:37 2019 +0200
@@ -870,6 +870,23 @@
870870 .setParameter("id", user.getId());
871871 int rowsUpdated = updateUserQuery.executeUpdate();
872872
873+ final User userResponse = new User();
874+ userResponse.setId(user.getId());
875+ userResponse.setUsername(user.getUsername());
876+ userResponse.setPassword("");
877+ userResponse.setAuthToken(user.getAuthToken());
878+ userResponse.setInSession(user.getInSession());
879+ userResponse.setKills(user.getKills());
880+ userResponse.setDeaths(user.getDeaths());
881+ userResponse.setSessionsWon(user.getSessionsWon());
882+ userResponse.setSessionsLost(user.getSessionsLost());
883+ userResponse.setSessionsPlayed(user.getSessionsPlayed());
884+ userResponse.setOnline(user.getOnline());
885+ userResponse.setLastInSessionTime(user.getLastInSessionTime());
886+ userResponse.setLastOnlineTime(user.getLastOnlineTime());
887+
888+// user.setPassword("");
889+
873890 return createResponse(user);
874891 }
875892