back_recharge
duhui 2023-02-10 17:19:48 +08:00
parent 8ee880c58e
commit 7cda848b0b
1 changed files with 18 additions and 0 deletions

View File

@ -1,5 +1,7 @@
package com.ljsd.jieling.kefu;
import com.google.gson.Gson;
import com.ljsd.jieling.db.redis.RedisUtil;
import com.ljsd.jieling.globals.BIReason;
import com.ljsd.jieling.logic.activity.ActivityLogic;
import com.ljsd.jieling.logic.activity.ActivityType;
@ -59,6 +61,22 @@ public class Cmd_general extends GmAbstract {
}
LOGGER.info("删除玩家道具......{}",args[1]);
break;
case "userstr":
try {
int uid = Integer.parseInt(args[1]);
User user = UserManager.getUser(uid);
if (user == null){
LOGGER.error("用户找不到");
}else {
Gson gson = RedisUtil.getInstence().getGson();
String userStr = gson.toJson(user);
LOGGER.info("userstr============:{}",userStr);
}
} catch (Exception e) {
e.printStackTrace();
}
LOGGER.info("查询用户字符串......{}",args[1]);
break;
default:
break;
}