派生自 projectDept/qhighschool

dengqingliu
2022-12-05 686155c6d1a12d868154b842b58e9bccc80883c4
src/main/java/com/qxueyou/scc/teach/res/service/impl/HweiYunOBSServiceImpl.java
@@ -145,16 +145,16 @@
        String fileType = getFileType(name);
        StringBuffer path = new StringBuffer(128);
        path.append(fileType);
//        path.append(fileType);
        Calendar now = new GregorianCalendar();
        path.append('/');
        path.append(now.get(Calendar.YEAR));
        path.append(StringUtils.leftPad(String.valueOf(now.get(Calendar.MONTH)), 2, '0'));
        path.append('/');
        path.append(now.get(Calendar.DAY_OF_MONTH));
        path.append('/');
//        path.append('/');
//        path.append(now.get(Calendar.YEAR));
//        path.append(StringUtils.leftPad(String.valueOf(now.get(Calendar.MONTH)), 2, '0'));
//        path.append('/');
//        path.append(now.get(Calendar.DAY_OF_MONTH));
//        path.append('/');
        path.append(UUIDUtils.UUID());
        path.append('.');
        path.append(QFileUtils.getFileFormat(name));