appId加入

lvxinran 2020-08-21 14:22:14 +08:00
parent cc801a8510
commit 38c3cffa54
3 changed files with 14 additions and 2 deletions

View File

@ -32,6 +32,8 @@ public class ServerProperties {
private String logDir;
private String appId;
public int getId() {
return id;
}
@ -128,6 +130,14 @@ public class ServerProperties {
this.logDir = logDir;
}
public String getAppId() {
return appId;
}
public void setAppId(String appId) {
this.appId = appId;
}
@Override
public String toString() {
return "ServerProperties{" +
@ -143,6 +153,7 @@ public class ServerProperties {
", autoOpen=" + autoOpen +
", debug=" + debug +
", logDir='" + logDir + '\'' +
", appId='" + appId + '\'' +
'}';
}
}

View File

@ -3,6 +3,7 @@ package com.ljsd.jieling.logic.store;
import com.google.gson.Gson;
import com.ljsd.GameApplication;
import com.ljsd.jieling.config.clazzStaticCfg.CommonStaticConfig;
import com.ljsd.jieling.config.json.ServerProperties;
import com.ljsd.jieling.config.reportData.DataMessageUtils;
import com.ljsd.jieling.core.GlobalsDef;
import com.ljsd.jieling.core.HandlerLogicThread;
@ -374,7 +375,7 @@ public class BuyGoodsLogic {
rechargeEvent.setModule("GameAnalysis");
rechargeEvent.setIp("");
rechargeEvent.setName("charge");
rechargeEvent.setIndex("wjtsq7xrwb48t2uw");
rechargeEvent.setIndex(GameApplication.serverProperties.getAppId()==null?"APPID":GameApplication.serverProperties.getAppId());
rechargeEvent.setIdentify(String.valueOf(uid));
rechargeEvent.setProperties(new RechargeEventProp(orderId,amount,virtualAmount,"CNY","",""));
String s = DataMessageUtils.sendRechargePost(rechargeEvent);

View File

@ -27,7 +27,7 @@ public class OnlineUserTapTask extends Thread {
Set<Integer> uids = OnlineUserManager.sessionMap.keySet();
OnlineUserCalEvent onlineUserCalEvent = new OnlineUserCalEvent();
onlineUserCalEvent.setAppid("wjtsq7xrwb48t2uw");
onlineUserCalEvent.setAppid(GameApplication.serverProperties.getAppId()==null?"APPID":GameApplication.serverProperties.getAppId());
onlineUserCalEvent.setOnlines(new OnlineProp[]{new OnlineProp(String.valueOf(serverId),uids.size(), TimeUtils.now()/1000)});
DataMessageUtils.sendOnlinePost(onlineUserCalEvent);
}