wangliang 4 년 전
부모
커밋
55add9f3d4

+ 60 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/domain/SysDomain.java

@@ -16,8 +16,68 @@ public class SysDomain implements Serializable {
 
     List attachmentType;
 
+    Integer attachmentLength;
+
+    Double attachmentSize;
+
     String serverUpload;
 
+    String accessKey;
+
+    String accessSecret;
+
+    String fileHost;
+
+    String serverHost;
+
+    public String getFileHost() {
+        return fileHost;
+    }
+
+    public void setFileHost(String fileHost) {
+        this.fileHost = fileHost;
+    }
+
+    public String getServerHost() {
+        return serverHost;
+    }
+
+    public void setServerHost(String serverHost) {
+        this.serverHost = serverHost;
+    }
+
+    public Integer getAttachmentLength() {
+        return attachmentLength;
+    }
+
+    public void setAttachmentLength(Integer attachmentLength) {
+        this.attachmentLength = attachmentLength;
+    }
+
+    public Double getAttachmentSize() {
+        return attachmentSize;
+    }
+
+    public void setAttachmentSize(Double attachmentSize) {
+        this.attachmentSize = attachmentSize;
+    }
+
+    public String getAccessKey() {
+        return accessKey;
+    }
+
+    public void setAccessKey(String accessKey) {
+        this.accessKey = accessKey;
+    }
+
+    public String getAccessSecret() {
+        return accessSecret;
+    }
+
+    public void setAccessSecret(String accessSecret) {
+        this.accessSecret = accessSecret;
+    }
+
     public boolean isOss() {
         return oss;
     }

+ 9 - 3
distributed-print/src/main/resources/application.properties

@@ -42,9 +42,15 @@ aliyun.oss.bucket=teachcloud-test
 aliyun.oss.url=http://${aliyun.oss.bucket}.${aliyun.oss.name}
 
 #\uFFFD\u01F7\uFFFD\uFFFD\u03F4\uFFFDoss
-sys.config.oss=false
+sys.config.oss=true
 sys.config.attachmentType=.xlsx,.xls,.doc,.docx,.pdf,.jpg,.jpeg,.png,.html,.zip,.mp3,.wav,.dll,.exe
-sys.config.serverUpload=upload
+sys.config.attachmentLength=100
+sys.config.attachmentSize=200
+sys.config.serverUpload=
+sys.config.fileHost=localhost:7001
+sys.config.serverHost=localhost:7001
+sys.config.accessKey=0bce69d94a7b4aef8bc0badf150351a9
+sys.config.accessSecret=LdUwb5X4etmjW7fDn0KAdoXG0Yt7AkDu
 spring.resources.static-locations=file:${sys.config.serverUpload},classpath:/META-INF/resources/,classpath:/resources/
 
 #com.qmth.api.uri-prefix=/aaa
@@ -58,7 +64,7 @@ com.qmth.api.auth.time-max-ahead=-10000
 com.qmth.api.auth.time-max-delay=10000
 
 #\u7F13\u5B58\u65F6\u95F4
-com.qmth.cache.expire-after-write=240m
+com.qmth.cache.expire-after-write=8h
 
 #api
 prefix.url.common=admin/common