通用gm,新增校验玩家缓存状态功能
parent
a61f5d01d3
commit
63c8cbebf2
|
@ -4,6 +4,7 @@ import com.google.gson.Gson;
|
|||
import com.ljsd.jieling.db.mongo.MongoUtil;
|
||||
import com.ljsd.jieling.db.redis.RedisUtil;
|
||||
import com.ljsd.jieling.globals.BIReason;
|
||||
import com.ljsd.jieling.logic.OnlineUserManager;
|
||||
import com.ljsd.jieling.logic.activity.ActivityLogic;
|
||||
import com.ljsd.jieling.logic.activity.ActivityType;
|
||||
import com.ljsd.jieling.logic.dao.*;
|
||||
|
@ -104,6 +105,16 @@ public class Cmd_general extends GmAbstract {
|
|||
}
|
||||
LOGGER.info("查询用户字符串......{}",args[1]);
|
||||
break;
|
||||
case "onlineuser":
|
||||
try {
|
||||
int uid = Integer.parseInt(args[1]);
|
||||
LOGGER.info("校验玩家session是否在线......uid:{},结果:{}",uid, OnlineUserManager.checkUidOnline(uid));
|
||||
LOGGER.info("校验玩家usermap是否在线......uid:{},结果:{}",uid, UserManager.isUserExist(uid));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
LOGGER.info("查询用户字符串......{}",args[1]);
|
||||
break;
|
||||
case "unlockfaxiang":
|
||||
try {
|
||||
int uid = Integer.parseInt(args[1]);
|
||||
|
|
Loading…
Reference in New Issue