public boolean record(String[] str) {
        boolean flag = false;
        if (str != null && str.length != 0) {
            for (int i = 0; i < str.length; ++i) {
                //按*分隔开资源名称和数量
                if (str[i] != null && !str[i].isEmpty()) {
                    List<String> tempList = Arrays.asList(str[i].split("\\*", -1));
                    if (i == 0) {
                        output.setResourceName(tempList.get(0));
                        output.setResourceNum(Integer.valueOf(tempList.get(1)).intValue());
                    } else {
                        ResourceItem resItem = new ResourceItem();
                        resItem.setResourceName(tempList.get(0));
                        resItem.setResourceNum(Integer.valueOf(tempList.get(1)).intValue());
                        inputList.add(resItem);
                    }
                }
            }
            flag = true;
        } else {
            log.error("输入字符串数组不可为空！", new IllegalArgumentException());
        }
        return flag;
    }