back_recharge
duhui 2023-02-10 17:57:45 +08:00
parent 7cda848b0b
commit 81e72ba228
1 changed files with 15 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package com.ljsd.jieling.kefu;
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.activity.ActivityLogic;
@ -77,6 +78,20 @@ public class Cmd_general extends GmAbstract {
}
LOGGER.info("查询用户字符串......{}",args[1]);
break;
case "saveuser":
try {
int uid = Integer.parseInt(args[1]);
User user = UserManager.getUser(uid);
if (user == null){
LOGGER.error("用户找不到");
}else {
MongoUtil.getInstence().getMyMongoTemplate().save(user.getId(),user);
}
} catch (Exception e) {
e.printStackTrace();
}
LOGGER.info("查询用户字符串......{}",args[1]);
break;
default:
break;
}