mongo 删除key

back_recharge
gaojie 2019-03-02 13:57:20 +08:00
parent 0d7f123a01
commit c20749d371
2 changed files with 2 additions and 3 deletions

View File

@ -44,8 +44,7 @@ public abstract class MongoBase {
public void removeString(String key) { public void removeString(String key) {
MongoRoot mongoRoot = getMongoRoot(); MongoRoot mongoRoot = getMongoRoot();
if (mongoRoot == null) return; if (mongoRoot == null) return;
MongoUpdateCacheThreadLocal.removeRequest(this, mongoRoot.getMyMongoDBPool(), mongoRoot.getCollection(), mongoRoot.getId(), MongoUpdateCacheThreadLocal.removeRequest(this, mongoRoot.getMyMongoDBPool(), mongoRoot.getCollection(), mongoRoot.getId(), key);
mongoKey + "." + key);
} }

View File

@ -31,7 +31,7 @@ public class ItemUtil {
addEquip(user,equipMap,dropBuilder); addEquip(user,equipMap,dropBuilder);
return dropBuilder; return dropBuilder;
} }
//活动掉落 //活动额外掉落
public static void activityDrop(User user,CommonProto.Drop.Builder dropBuilder ,int[] dropGroupIds, float dropRatio) throws Exception { public static void activityDrop(User user,CommonProto.Drop.Builder dropBuilder ,int[] dropGroupIds, float dropRatio) throws Exception {
Map<Integer, Integer> itemMap = new HashMap<>(); Map<Integer, Integer> itemMap = new HashMap<>();
Map<Integer, Integer> cardMap = new HashMap<>(); Map<Integer, Integer> cardMap = new HashMap<>();