爱玩上报
parent
7f7c729752
commit
5bb162590f
|
@ -34,6 +34,8 @@ public class ServerProperties {
|
||||||
|
|
||||||
private String appId;
|
private String appId;
|
||||||
|
|
||||||
|
private String aiwanAppId;
|
||||||
|
|
||||||
private boolean arenaCross;
|
private boolean arenaCross;
|
||||||
|
|
||||||
private int threads;
|
private int threads;
|
||||||
|
@ -150,6 +152,14 @@ public class ServerProperties {
|
||||||
this.arenaCross = arenaCross;
|
this.arenaCross = arenaCross;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getAiwanAppId() {
|
||||||
|
return aiwanAppId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAiwanAppId(String aiwanAppId) {
|
||||||
|
this.aiwanAppId = aiwanAppId;
|
||||||
|
}
|
||||||
|
|
||||||
public int getThreads() {
|
public int getThreads() {
|
||||||
if (threads <= 0){
|
if (threads <= 0){
|
||||||
threads = 8;
|
threads = 8;
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class AiWanPlayerInfoUpload {
|
||||||
*/
|
*/
|
||||||
public void upload(User user, String type){
|
public void upload(User user, String type){
|
||||||
// 只有爱玩的服务器需要上报
|
// 只有爱玩的服务器需要上报
|
||||||
if (!app_id.equals(GameApplication.serverProperties.getAppId())){
|
if (!app_id.equals(GameApplication.serverProperties.getAiwanAppId())){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
PlayerManager playerInfoManager = user.getPlayerInfoManager();
|
PlayerManager playerInfoManager = user.getPlayerInfoManager();
|
||||||
|
|
Loading…
Reference in New Issue