back_recharge
parent
7cda848b0b
commit
81e72ba228
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue