Ver código fonte

3.1.0-txt路径

xiaof 3 anos atrás
pai
commit
457b330075

+ 2 - 2
distributed-print-business/src/main/java/com/qmth/distributed/print/business/templete/push/AsyncPushTaskTemplate.java

@@ -82,10 +82,10 @@ public abstract class AsyncPushTaskTemplate {
             byte[] bookByteAry = out.toByteArray();
             inputStream = new ByteArrayInputStream(bookByteAry);
 
-            DictionaryConfig dictionaryConfig = SpringContextHolder.getBean(DictionaryConfig.class);
+            boolean oss = dictionaryConfig.sysDomain().isOss();
             StringJoiner stringJoiner = new StringJoiner("");
             JSONObject json = new JSONObject();
-            if (Objects.nonNull(dictionaryConfig) && dictionaryConfig.sysDomain().isOss()) {
+            if (oss) {
                 json.put(SystemConstant.TYPE, SystemConstant.OSS);
             } else {
                 stringJoiner.add(SystemConstant.TEMP_FILES_DIR).add(File.separator);