reload role

back_recharge
wangyuan 2019-11-18 10:12:55 +08:00
parent 30af8125d3
commit b31764a7d5
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
package com.ljsd.jieling.kefu;
import com.ljsd.jieling.db.mongo.MongoUtil;
import com.ljsd.jieling.logic.dao.UserManager;
import com.ljsd.jieling.logic.dao.root.User;
public class Cmd_reload_role_gm extends GmRoleAbstract{
@Override
public boolean exec(String[] args) throws Exception {
User user = getUser();
user = MongoUtil.getInstence().getMyMongoTemplate().findById(User.getCollectionName(), user.getId(), User.class);
if (user == null) {
return false;
}
UserManager.addUser(user);
return true;
}
}