|
@@ -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);
|