查看内存数据
parent
f805f83a25
commit
a83b68e790
|
@ -1,5 +1,6 @@
|
|||
package com.ljsd.jieling.kefu;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.ljsd.jieling.config.SErrorCodeEerverConfig;
|
||||
import com.ljsd.jieling.config.SGameSetting;
|
||||
import com.ljsd.jieling.dataReport.reportBeans_37.ChatContentType;
|
||||
|
@ -11,6 +12,7 @@ import com.ljsd.jieling.globals.BIReason;
|
|||
import com.ljsd.jieling.globals.Global;
|
||||
import com.ljsd.jieling.logic.OnlineUserManager;
|
||||
import com.ljsd.jieling.logic.dao.PlayerManager;
|
||||
import com.ljsd.jieling.logic.dao.UserManager;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
import com.ljsd.jieling.logic.hero.HeroLogic;
|
||||
import com.ljsd.jieling.logic.mail.MailLogic;
|
||||
|
@ -40,6 +42,25 @@ public class Cmd_changename extends GmRoleAbstract {
|
|||
String key = RedisKey.getKey(RedisKey.FORCE_RANK, "", false);
|
||||
RedisUtil.getInstence().zsetAddOne(key, String.valueOf(user.getId()), teamForce);
|
||||
}
|
||||
|
||||
if("userinfo".equals(args[2])){
|
||||
Gson gson = new Gson();
|
||||
PlayerManager playerManager = user.getPlayerInfoManager();
|
||||
LOGGER.info("cmd_________userinfo:"+gson.toJson(playerManager));
|
||||
}
|
||||
|
||||
if("reload".equals(args[2])){
|
||||
if (null != user) {
|
||||
UserManager.removeUser(user.getId());
|
||||
}
|
||||
user = MongoUtil.getInstence().getMyMongoTemplate().findById(User.getCollectionName(), user.getId(), User.class);
|
||||
if (user != null) {
|
||||
UserManager.addUser(user);
|
||||
LOGGER.info("cmd_________reload:");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
String name;
|
||||
if (args.length == 1) {
|
||||
|
|
Loading…
Reference in New Issue