whycxzp
2025-03-06 dfd45b0998e4b9279e8ed8a33fbf82fc4e8b6015
src/main/java/com/whyc/constant/YamlProperties.java
@@ -21,6 +21,9 @@
     */
    public static Integer systemType;
    /** 系统子类别 */
    public static Integer systemSubType;
    /**人脸识别对比阈值*/
    public static Float faceThreshold;
@@ -67,6 +70,11 @@
        YamlProperties.systemType = systemType;
    }
    @Value("${system.subType}")
    public void setSystemSubType(Integer systemSubType) {
        YamlProperties.systemSubType = systemSubType;
    }
    @Value("${custom.face.threshold}")
    private void setFaceThreshold(Float faceThreshold) {
        YamlProperties.faceThreshold = faceThreshold;