跨服数据
parent
779647bea4
commit
d7b09e30ad
|
@ -1,6 +1,7 @@
|
|||
package com.ljsd;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.google.gson.Gson;
|
||||
import com.ljsd.jieling.core.GlobalsDef;
|
||||
import com.ljsd.jieling.db.redis.RedisUtil;
|
||||
|
@ -368,7 +369,18 @@ public class CoreService implements RPCRequestIFace.Iface {
|
|||
}
|
||||
Gson gson = RedisUtil.getInstence().getGson();
|
||||
if (user != null) {
|
||||
return gson.toJson(user);
|
||||
String userStr = gson.toJson(user);
|
||||
JSONObject jsonObject = JSONObject.parseObject(userStr);
|
||||
// JSONObject activityManager = (JSONObject) jsonObject.get("activityManager");
|
||||
// activityManager.remove("activityMissionMapLog");
|
||||
// jsonObject.put("activityManager", activityManager);
|
||||
jsonObject.remove("activityManager");
|
||||
jsonObject.remove("bloodyInfo");
|
||||
jsonObject.remove("workShopController");
|
||||
jsonObject.remove("itemManager");
|
||||
jsonObject.remove("mailManager");
|
||||
jsonObject.remove("storeManager");
|
||||
return jsonObject.toString();
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue