public boolean AsynConsume(String res) {
        boolean flag = false;
        if (res != null && !res.isEmpty()) {
            if (checkDepository(res)) {
                //ResourceItem output = new ResourceItem(res, 1);//产出1单位物品
                ResourceFormula checkList = formulaMap.get(res);//取出该合成公式
                for (ResourceItem ri : checkList.getResourceFormula()) {
                    if (!res.equals(ri.getResourceName())) {
                        Integer num = depository.get(ri.getResourceName());//取出某资源对应数目
                        if (num == ri.getResourceNum()) {
                            depository.remove(ri.getResourceName());
                        } else
                            depository.put(ri.getResourceName(), num - ri.getResourceNum());//减掉应扣除的资源数目再放回去
                    }
                }
                if (depository.containsKey(res)) {
                    Integer num = depository.get(res);
                    depository.put(res, num + 1);
                } else
                    depository.put(res, 1);
                flag = true;
            }
        }

        return flag;
    }