跨服数据

back_recharge
jiahuiwen 2022-04-24 15:39:59 +08:00
parent 779647bea4
commit d7b09e30ad
1 changed files with 13 additions and 1 deletions

View File

@ -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 "";
}