zhangyong
2024-01-10 4abee8e36e3259fcf77cc1d1879a2d959edc8297
springboot-vue3/src/main/java/com/example/springboot/component/MessageHandler.java
@@ -204,6 +204,17 @@
    public short[] convertBooleanListToShortArray(List<Boolean> booleanList) {
        short[] shortArray = new short[booleanList.size()];
        for (int i = 0; i < booleanList.size(); i++) {
            boolean value = booleanList.get(i);
            shortArray[i] = value ? (short) 1 : (short) 0;
        }
        return shortArray;
    }