wangliang 4 vuotta sitten
vanhempi
commit
425908abfd
17 muutettua tiedostoa jossa 173 lisäystä ja 71 poistoa
  1. 12 4
      themis-backend/src/main/java/com/qmth/themis/backend/api/SysController.java
  2. 1 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamStudentController.java
  3. 1 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/TEStudentController.java
  4. 1 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateCallMobileController.java
  5. 1 1
      themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateController.java
  6. 15 6
      themis-backend/src/main/resources/application.properties
  7. 11 4
      themis-business/src/main/java/com/qmth/themis/business/config/SystemConfig.java
  8. 90 30
      themis-business/src/main/java/com/qmth/themis/business/domain/AliYunOssDomain.java
  9. 1 2
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamServiceImpl.java
  10. 2 2
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TEOpenServiceImpl.java
  11. 1 1
      themis-business/src/main/java/com/qmth/themis/business/service/impl/TEStudentServiceImpl.java
  12. 2 2
      themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskExamPaperImportTemplete.java
  13. 0 1
      themis-business/src/main/resources/mapper/TEExamMapper.xml
  14. 4 2
      themis-exam/src/main/java/com/qmth/themis/exam/api/SysController.java
  15. 1 1
      themis-exam/src/main/java/com/qmth/themis/exam/api/TEStudentController.java
  16. 15 6
      themis-exam/src/main/resources/application.properties
  17. 15 6
      themis-task/src/main/resources/application.properties

+ 12 - 4
themis-backend/src/main/java/com/qmth/themis/backend/api/SysController.java

@@ -130,10 +130,18 @@ public class SysController {
         JSONObject jsonObject = JSONObject.parseObject(tbAttachment.getRemark());
         String attachmentType = String.valueOf(jsonObject.get("type"));
         String url = null;
+        String filePath = (String) jsonObject.get("path");
         if (Objects.equals(attachmentType, SystemConstant.LOCAL)) {
-            url = "http://" + dictionaryConfig.sysDomain().getFileHost() + File.separator + jsonObject.get("path");
+            url = "http://" + dictionaryConfig.sysDomain().getFileHost() + File.separator + filePath;
         } else {
-            url = dictionaryConfig.aliYunOssDomain().getUrl() + File.separator + jsonObject.get("path");
+            if (Objects.nonNull(mapParameter.get(SystemConstant.UPLOAD_TYPE))) {
+                Integer fileId = UploadFileEnum.convertToId((String) mapParameter.get(SystemConstant.UPLOAD_TYPE));
+                if (fileId == 3) {
+                    url = dictionaryConfig.aliYunOssDomain().getPrivateUrl() + File.separator + filePath;
+                } else {
+                    url = dictionaryConfig.aliYunOssDomain().getPublicUrl() + File.separator + filePath;
+                }
+            }
         }
         Map map = new HashMap();
         map.put(SystemConstant.ID, tbAttachment.getId());
@@ -176,7 +184,7 @@ public class SysController {
         if (Objects.isNull(jsonObject) || Objects.isNull(jsonObject.get("path"))) {
             throw new BusinessException("下载文件地址不存在");
         }
-        String filePath = String.valueOf(jsonObject.get("path"));
+        String filePath = (String) jsonObject.get("path");
         String url = null;
         if (oss) {
             if (Objects.nonNull(filePath)) {
@@ -185,7 +193,7 @@ public class SysController {
                 if (fileId == 3) {
                     url = OssUtil.getUrlForPrivateBucket(systemConfig.getOssEnv(3), filePath);
                 } else {
-                    url = dictionaryConfig.aliYunOssDomain().getUrl() + File.separator + filePath;
+                    url = dictionaryConfig.aliYunOssDomain().getPublicUrl() + File.separator + filePath;
                 }
             }
         } else {

+ 1 - 1
themis-backend/src/main/java/com/qmth/themis/backend/api/TEExamStudentController.java

@@ -143,7 +143,7 @@ public class TEExamStudentController {
         if (teExamStudentIPage.getRecords() != null && teExamStudentIPage.getRecords().size() > 0) {
             for (TEExamStudentDto dto : teExamStudentIPage.getRecords()) {
                 if (StringUtils.isNotBlank(dto.getBasePhotoUrl())) {
-                    dto.setBasePhotoUrl(systemConfig.getProperty("aliyun.oss.url") + "/" + dto.getBasePhotoUrl());
+                    dto.setBasePhotoUrl(systemConfig.getProperty("aliyun.oss.publicUrl") + "/" + dto.getBasePhotoUrl());
                 }
             }
         }

+ 1 - 1
themis-backend/src/main/java/com/qmth/themis/backend/api/TEStudentController.java

@@ -60,7 +60,7 @@ public class TEStudentController {
         if (teExamStudentIPage.getRecords() != null && teExamStudentIPage.getRecords().size() > 0) {
             for (TEStudentDto dto : teExamStudentIPage.getRecords()) {
                 if (StringUtils.isNotBlank(dto.getBasePhotoPath())) {
-                    dto.setBasePhotoPath(systemConfig.getProperty("aliyun.oss.url") + "/" + dto.getBasePhotoPath());
+                    dto.setBasePhotoPath(systemConfig.getProperty("aliyun.oss.publicUrl") + "/" + dto.getBasePhotoPath());
                 }
             }
         }

+ 1 - 1
themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateCallMobileController.java

@@ -100,7 +100,7 @@ public class TIeInvigilateCallMobileController {
         }
         IPage<TIeExamInvigilateCallDto> tIeExamInvigilateCallIPage = tIeExamInvigilateCallService.examInvigilateCallQuery(new Page<>(pageNumber, pageSize), examId, userId, tbUser.getOrgId(), MonitorStatusSourceEnum.START.name(), callStatus);
         tIeExamInvigilateCallIPage.getRecords().forEach(s -> {
-            s.setBasePhotoPath(systemConfig.getProperty("aliyun.oss.url") + File.separator + s.getBasePhotoPath());
+            s.setBasePhotoPath(systemConfig.getProperty("aliyun.oss.publicUrl") + File.separator + s.getBasePhotoPath());
             try {
                 s.setSourceUserId(this.getSourceUserId(s.getExamRecordId()));
             } catch (NoSuchAlgorithmException e) {

+ 1 - 1
themis-backend/src/main/java/com/qmth/themis/backend/api/TIeInvigilateController.java

@@ -264,7 +264,7 @@ public class TIeInvigilateController {
         }
         ExamStudentCacheBean examStudentCacheBean = teExamStudentService.getExamStudentCacheBean(examStudentId);
         TEStudent teStudent = teStudentService.getById(examStudentCacheBean.getStudentId());
-        String basePhotoPath = systemConfig.getProperty("aliyun.oss.url") + File.separator + teStudent.getBasePhotoPath();
+        String basePhotoPath = systemConfig.getProperty("aliyun.oss.publicUrl") + File.separator + teStudent.getBasePhotoPath();
         String identity = examStudentCacheBean.getIdentity();
         String examStudentName = examStudentCacheBean.getName();
         String courseNameCode = examStudentCacheBean.getCourseName() + "(" + examStudentCacheBean.getCourseCode() + ")";

+ 15 - 6
themis-backend/src/main/resources/application.properties

@@ -108,14 +108,23 @@ spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
 spring.jackson.time-zone=GMT+8
 
 #\u963F\u91CC\u4E91OSS\u914D\u7F6E
-aliyun.oss.name=oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.publicName=oss-cn-shenzhen.aliyuncs.com
 #aliyun.oss.endpoint=http://${aliyun.oss.name}
-aliyun.oss.endpoint=http://oss-cn-shenzhen.aliyuncs.com
-aliyun.oss.accessKeyId=LTAI4FnJ2pgV6aGceYcCkeEi
-aliyun.oss.accessKeySecret=ktrMEVE7PfoxRPeJUPDFeygOIH4aU7
-aliyun.oss.bucket=qmth-test
+aliyun.oss.publicEndpoint=http://oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.publicAccessKeyId=LTAI4FnJ2pgV6aGceYcCkeEi
+aliyun.oss.publicAccessKeySecret=ktrMEVE7PfoxRPeJUPDFeygOIH4aU7
+aliyun.oss.publicBucket=qmth-test
 #aliyun.oss.url=http://${aliyun.oss.bucket}.${aliyun.oss.name}
-aliyun.oss.url=http://qmth-test.oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.publicUrl=http://qmth-test.oss-cn-shenzhen.aliyuncs.com
+
+aliyun.oss.privateName=oss-cn-shenzhen.aliyuncs.com
+#aliyun.oss.endpoint=http://${aliyun.oss.name}
+aliyun.oss.privateEndpoint=http://oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.privateAccessKeyId=LTAI4FnJ2pgV6aGceYcCkeEi
+aliyun.oss.privateAccessKeySecret=ktrMEVE7PfoxRPeJUPDFeygOIH4aU7
+aliyun.oss.privateBucket=qmth-test
+#aliyun.oss.url=http://${aliyun.oss.bucket}.${aliyun.oss.name}
+aliyun.oss.privateUrl=http://qmth-test.oss-cn-shenzhen.aliyuncs.com
 
 #\u817E\u8BAF\u4E91\u914D\u7F6E
 tencentyun.sdk.appId=1400411036

+ 11 - 4
themis-business/src/main/java/com/qmth/themis/business/config/SystemConfig.java

@@ -71,10 +71,17 @@ public class SystemConfig {
      */
     public Map<String, Object> getOssEnv(Integer type) {
         Map<String, Object> mapParameter = new HashMap<>();
-        mapParameter.put(SystemConstant.END_POINT, props.getProperty("aliyun.oss.endpoint", "aliyun.oss.name"));
-        mapParameter.put(SystemConstant.ACCESS_KEY_ID, props.getProperty("aliyun.oss.accessKeyId"));
-        mapParameter.put(SystemConstant.ACCESS_KEY_SECRET, props.getProperty("aliyun.oss.accessKeySecret"));
-        mapParameter.put(SystemConstant.BUCKET, props.getProperty("aliyun.oss.bucket"));
+        if (Objects.nonNull(type) && type == 3) {
+            mapParameter.put(SystemConstant.END_POINT, props.getProperty("aliyun.oss.privateEndpoint", "aliyun.oss.privateName"));
+            mapParameter.put(SystemConstant.ACCESS_KEY_ID, props.getProperty("aliyun.oss.privateAccessKeyId"));
+            mapParameter.put(SystemConstant.ACCESS_KEY_SECRET, props.getProperty("aliyun.oss.privateAccessKeySecret"));
+            mapParameter.put(SystemConstant.BUCKET, props.getProperty("aliyun.oss.privateBucket"));
+        } else {
+            mapParameter.put(SystemConstant.END_POINT, props.getProperty("aliyun.oss.publicEndpoint", "aliyun.oss.publicName"));
+            mapParameter.put(SystemConstant.ACCESS_KEY_ID, props.getProperty("aliyun.oss.publicAccessKeyId"));
+            mapParameter.put(SystemConstant.ACCESS_KEY_SECRET, props.getProperty("aliyun.oss.publicAccessKeySecret"));
+            mapParameter.put(SystemConstant.BUCKET, props.getProperty("aliyun.oss.publicBucket"));
+        }
         mapParameter.put(SystemConstant.OSS, Boolean.valueOf(props.getProperty("sys.config.oss")));
         mapParameter.put(SystemConstant.ATTACHMENT_TYPE, Arrays.asList(props.getProperty("sys.config.attachmentType").split(",")));
         String uploadType = UploadFileEnum.convertToName(type);

+ 90 - 30
themis-business/src/main/java/com/qmth/themis/business/domain/AliYunOssDomain.java

@@ -11,63 +11,123 @@ import java.io.Serializable;
  */
 public class AliYunOssDomain implements Serializable {
 
-    private String endpoint;
+    private String publicEndpoint;
 
-    private String name;
+    private String publicName;
 
-    private String accessKeyId;
+    private String publicAccessKeyId;
 
-    private String accessKeySecret;
+    private String publicAccessKeySecret;
 
-    private String bucket;
+    private String publicBucket;
 
-    private String url;
+    private String publicUrl;
 
-    public String getEndpoint() {
-        return endpoint;
+    private String privateEndpoint;
+
+    private String privateName;
+
+    private String privateAccessKeyId;
+
+    private String privateAccessKeySecret;
+
+    private String privateBucket;
+
+    private String privateUrl;
+
+    public String getPrivateEndpoint() {
+        return privateEndpoint;
+    }
+
+    public void setPrivateEndpoint(String privateEndpoint) {
+        this.privateEndpoint = privateEndpoint;
+    }
+
+    public String getPrivateName() {
+        return privateName;
+    }
+
+    public void setPrivateName(String privateName) {
+        this.privateName = privateName;
+    }
+
+    public String getPrivateAccessKeyId() {
+        return privateAccessKeyId;
+    }
+
+    public void setPrivateAccessKeyId(String privateAccessKeyId) {
+        this.privateAccessKeyId = privateAccessKeyId;
+    }
+
+    public String getPrivateAccessKeySecret() {
+        return privateAccessKeySecret;
+    }
+
+    public void setPrivateAccessKeySecret(String privateAccessKeySecret) {
+        this.privateAccessKeySecret = privateAccessKeySecret;
+    }
+
+    public String getPrivateBucket() {
+        return privateBucket;
+    }
+
+    public void setPrivateBucket(String privateBucket) {
+        this.privateBucket = privateBucket;
+    }
+
+    public String getPrivateUrl() {
+        return privateUrl;
+    }
+
+    public void setPrivateUrl(String privateUrl) {
+        this.privateUrl = privateUrl;
+    }
+
+    public String getPublicEndpoint() {
+        return publicEndpoint;
     }
 
-    public void setEndpoint(String endpoint) {
-        this.endpoint = endpoint;
+    public void setPublicEndpoint(String publicEndpoint) {
+        this.publicEndpoint = publicEndpoint;
     }
 
-    public String getName() {
-        return name;
+    public String getPublicName() {
+        return publicName;
     }
 
-    public void setName(String name) {
-        this.name = name;
+    public void setPublicName(String publicName) {
+        this.publicName = publicName;
     }
 
-    public String getAccessKeyId() {
-        return accessKeyId;
+    public String getPublicAccessKeyId() {
+        return publicAccessKeyId;
     }
 
-    public void setAccessKeyId(String accessKeyId) {
-        this.accessKeyId = accessKeyId;
+    public void setPublicAccessKeyId(String publicAccessKeyId) {
+        this.publicAccessKeyId = publicAccessKeyId;
     }
 
-    public String getAccessKeySecret() {
-        return accessKeySecret;
+    public String getPublicAccessKeySecret() {
+        return publicAccessKeySecret;
     }
 
-    public void setAccessKeySecret(String accessKeySecret) {
-        this.accessKeySecret = accessKeySecret;
+    public void setPublicAccessKeySecret(String publicAccessKeySecret) {
+        this.publicAccessKeySecret = publicAccessKeySecret;
     }
 
-    public String getBucket() {
-        return bucket;
+    public String getPublicBucket() {
+        return publicBucket;
     }
 
-    public void setBucket(String bucket) {
-        this.bucket = bucket;
+    public void setPublicBucket(String publicBucket) {
+        this.publicBucket = publicBucket;
     }
 
-    public String getUrl() {
-        return url;
+    public String getPublicUrl() {
+        return publicUrl;
     }
 
-    public void setUrl(String url) {
-        this.url = url;
+    public void setPublicUrl(String publicUrl) {
+        this.publicUrl = publicUrl;
     }
 }

+ 1 - 2
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamServiceImpl.java

@@ -691,7 +691,6 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
     @Override
     public ExamFileUploadBean fileUpload(Long studentId, Long recordId, MultipartFile file, String suffix, String
             md5) {
-
         // 校验当前登录用户和参数一致性
         if (ExamRecordCacheUtil.getId(recordId) == null) {
             throw new BusinessException(ExceptionResultEnum.NOT_FOUND_EXAM_RECORD);
@@ -719,7 +718,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
             }
             in = file.getInputStream();
             OssUtil.ossUploadStream(systemConfig.getOssEnv(3), filePath, in);
-            String url = systemConfig.getProperty("aliyun.oss.url") + File.separator + filePath;
+            String url = systemConfig.getProperty("aliyun.oss.privateUrl") + File.separator + filePath;
             ExamFileUploadBean ret = new ExamFileUploadBean();
             ret.setUrl(url);
             ret.setUploadTime(System.currentTimeMillis());

+ 2 - 2
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEOpenServiceImpl.java

@@ -102,8 +102,8 @@ public class TEOpenServiceImpl implements TEOpenService {
 			SystemConfig systemConfig = SpringContextHolder.getBean(SystemConfig.class);
 			File paperFile = new File(dir + uuid() + ".json");
 			File anwserFile = new File(dir + uuid() + ".json");
-			FileUtil.saveUrlAsFile(systemConfig.getProperty("aliyun.oss.url") + "/"+paperPath, paperFile);
-			FileUtil.saveUrlAsFile(systemConfig.getProperty("aliyun.oss.url") + "/"+anwserPath, anwserFile);
+			FileUtil.saveUrlAsFile(systemConfig.getProperty("aliyun.oss.privateUrl") + "/"+paperPath, paperFile);
+			FileUtil.saveUrlAsFile(systemConfig.getProperty("aliyun.oss.privateUrl") + "/"+anwserPath, anwserFile);
 			JSONObject answerJson = JSONObject.parseObject(FileUtil.readFileContent(anwserFile));
 			JSONArray answerdetails = answerJson.getJSONArray("details");
 			JSONObject structJson = JSONObject.parseObject(FileUtil.readFileContent(paperFile));

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEStudentServiceImpl.java

@@ -100,7 +100,7 @@ public class TEStudentServiceImpl extends ServiceImpl<TEStudentMapper, TEStudent
             redisUtil.setStudent(student.getId(), teStudentCacheDto);
             in = file.getInputStream();
             OssUtil.ossUploadStream(systemConfig.getOssEnv(3), filePath, in);
-            String url = systemConfig.getProperty("aliyun.oss.url") + File.separator + filePath;
+            String url = systemConfig.getProperty("aliyun.oss.publicUrl") + File.separator + filePath;
             StudentPhotoUploadResponseBean ret = new StudentPhotoUploadResponseBean();
             ret.setPhotoUrl(url);
             return ret;

+ 2 - 2
themis-business/src/main/java/com/qmth/themis/business/templete/impl/TaskExamPaperImportTemplete.java

@@ -552,14 +552,14 @@ public class TaskExamPaperImportTemplete implements TaskImportTemplete {
                 String filePath = "upload/paper_file/"+paperId+"/" + uuid() +"."+ suff;
                 SystemConfig systemConfig = SpringContextHolder.getBean(SystemConfig.class);
 				OssUtil.ossUpload(systemConfig.getOssEnv(3), filePath, iamgeFile);
-				blockInfo.put("value", systemConfig.getProperty("aliyun.oss.url") + "/" +filePath);
+				blockInfo.put("value", systemConfig.getProperty("aliyun.oss.privateUrl") + "/" +filePath);
 			}else{
 				String suff=value.substring(value.indexOf("."));
 				String filePath = "upload/paper_file/"+paperId+"/" + uuid() + suff;
 				File audioFile=new File(attachmentDir.getAbsolutePath()+"/"+value);
 				SystemConfig systemConfig = SpringContextHolder.getBean(SystemConfig.class);
 				OssUtil.ossUpload(systemConfig.getOssEnv(3), filePath, audioFile);
-				blockInfo.put("value", systemConfig.getProperty("aliyun.oss.url") + "/" +filePath);
+				blockInfo.put("value", systemConfig.getProperty("aliyun.oss.privateUrl") + "/" +filePath);
 			}
 		}
 	}

+ 0 - 1
themis-business/src/main/resources/mapper/TEExamMapper.xml

@@ -77,7 +77,6 @@
         <where> t.monitor_status <![CDATA[ <> ]]> 'FINISHED'
             <if test="userId != null and userId != ''">
                 and t.start_time <![CDATA[ <= ]]> unix_timestamp(current_timestamp()) * 1000
-                and t.end_time <![CDATA[ >= ]]> unix_timestamp(current_timestamp()) * 1000
                 and t.enable = 1
                 and EXISTS(
                 select

+ 4 - 2
themis-exam/src/main/java/com/qmth/themis/exam/api/SysController.java

@@ -6,6 +6,7 @@ import com.qmth.themis.business.bean.exam.EnvBean;
 import com.qmth.themis.business.bean.exam.OrgInfoBean;
 import com.qmth.themis.business.bean.exam.VersionBean;
 import com.qmth.themis.business.entity.TBOrg;
+import com.qmth.themis.business.enums.UploadFileEnum;
 import com.qmth.themis.business.service.TBOrgService;
 import com.qmth.themis.business.util.RedisUtil;
 import com.qmth.themis.common.util.Result;
@@ -18,6 +19,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
 import javax.annotation.Resource;
+import java.io.File;
 import java.util.Map;
 import java.util.Objects;
 
@@ -65,9 +67,9 @@ public class SysController {
         boolean oss = dictionaryConfig.sysDomain().isOss();
         String url = null;
         if (oss) {
-            url = dictionaryConfig.aliYunOssDomain().getUrl() + "/client/denyList.json";
+            url = dictionaryConfig.aliYunOssDomain().getPublicUrl() + File.separator + UploadFileEnum.client.name() + "/denyList.json";
         } else {
-            url = "http://" + dictionaryConfig.sysDomain().getFileHost() + "/client/denyList.json";
+            url = "http://" + dictionaryConfig.sysDomain().getFileHost() + File.separator + UploadFileEnum.client.name() + "/denyList.json";
         }
         env.setDenyList(url);
         return ResultUtil.ok(env);

+ 1 - 1
themis-exam/src/main/java/com/qmth/themis/exam/api/TEStudentController.java

@@ -151,7 +151,7 @@ public class TEStudentController {
             throw new BusinessException(ExceptionResultEnum.STUDENT_NO);
         }
         if (StringUtils.isNotBlank(user.getBasePhotoPath())) {
-            user.setBasePhotoPath(systemConfig.getProperty("aliyun.oss.url") + File.separator + user.getBasePhotoPath());
+            user.setBasePhotoPath(systemConfig.getProperty("aliyun.oss.publicUrl") + File.separator + user.getBasePhotoPath());
         }
         String loginPassword = AesUtil.decryptCs7(password, Constants.AES_RULE);
         //密码错误

+ 15 - 6
themis-exam/src/main/resources/application.properties

@@ -120,14 +120,23 @@ rocketmq.producer.enable-msg-trace=true
 rocketmq.producer.customized-trace-topic=my-trace-topic
 
 #\u963F\u91CC\u4E91OSS\u914D\u7F6E
-aliyun.oss.name=oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.publicName=oss-cn-shenzhen.aliyuncs.com
 #aliyun.oss.endpoint=http://${aliyun.oss.name}
-aliyun.oss.endpoint=http://oss-cn-shenzhen.aliyuncs.com
-aliyun.oss.accessKeyId=LTAI4FnJ2pgV6aGceYcCkeEi
-aliyun.oss.accessKeySecret=ktrMEVE7PfoxRPeJUPDFeygOIH4aU7
-aliyun.oss.bucket=qmth-test
+aliyun.oss.publicEndpoint=http://oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.publicAccessKeyId=LTAI4FnJ2pgV6aGceYcCkeEi
+aliyun.oss.publicAccessKeySecret=ktrMEVE7PfoxRPeJUPDFeygOIH4aU7
+aliyun.oss.publicBucket=qmth-test
 #aliyun.oss.url=http://${aliyun.oss.bucket}.${aliyun.oss.name}
-aliyun.oss.url=http://qmth-test.oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.publicUrl=http://qmth-test.oss-cn-shenzhen.aliyuncs.com
+
+aliyun.oss.privateName=oss-cn-shenzhen.aliyuncs.com
+#aliyun.oss.endpoint=http://${aliyun.oss.name}
+aliyun.oss.privateEndpoint=http://oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.privateAccessKeyId=LTAI4FnJ2pgV6aGceYcCkeEi
+aliyun.oss.privateAccessKeySecret=ktrMEVE7PfoxRPeJUPDFeygOIH4aU7
+aliyun.oss.privateBucket=qmth-test
+#aliyun.oss.url=http://${aliyun.oss.bucket}.${aliyun.oss.name}
+aliyun.oss.privateUrl=http://qmth-test.oss-cn-shenzhen.aliyuncs.com
 
 #\u817E\u8BAF\u4E91\u914D\u7F6E
 tencentyun.sdk.appId=1400411036

+ 15 - 6
themis-task/src/main/resources/application.properties

@@ -100,14 +100,23 @@ sys.config.serverUpload=/Users/king/git/themis-files/
 spring.resources.static-locations=file:${sys.config.serverUpload},classpath:/META-INF/resources/,classpath:/resources/
 
 #\u963F\u91CC\u4E91OSS\u914D\u7F6E
-aliyun.oss.name=oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.publicName=oss-cn-shenzhen.aliyuncs.com
 #aliyun.oss.endpoint=http://${aliyun.oss.name}
-aliyun.oss.endpoint=http://oss-cn-shenzhen.aliyuncs.com
-aliyun.oss.accessKeyId=LTAI4FnJ2pgV6aGceYcCkeEi
-aliyun.oss.accessKeySecret=ktrMEVE7PfoxRPeJUPDFeygOIH4aU7
-aliyun.oss.bucket=qmth-test
+aliyun.oss.publicEndpoint=http://oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.publicAccessKeyId=LTAI4FnJ2pgV6aGceYcCkeEi
+aliyun.oss.publicAccessKeySecret=ktrMEVE7PfoxRPeJUPDFeygOIH4aU7
+aliyun.oss.publicBucket=qmth-test
 #aliyun.oss.url=http://${aliyun.oss.bucket}.${aliyun.oss.name}
-aliyun.oss.url=http://qmth-test.oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.publicUrl=http://qmth-test.oss-cn-shenzhen.aliyuncs.com
+
+aliyun.oss.privateName=oss-cn-shenzhen.aliyuncs.com
+#aliyun.oss.endpoint=http://${aliyun.oss.name}
+aliyun.oss.privateEndpoint=http://oss-cn-shenzhen.aliyuncs.com
+aliyun.oss.privateAccessKeyId=LTAI4FnJ2pgV6aGceYcCkeEi
+aliyun.oss.privateAccessKeySecret=ktrMEVE7PfoxRPeJUPDFeygOIH4aU7
+aliyun.oss.privateBucket=qmth-test
+#aliyun.oss.url=http://${aliyun.oss.bucket}.${aliyun.oss.name}
+aliyun.oss.privateUrl=http://qmth-test.oss-cn-shenzhen.aliyuncs.com
 #============================================================================
 # \u914D\u7F6EJobStore
 #============================================================================