刘韬 2 years ago
parent
commit
15f7015cbb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      DataFusion/src/com/zskk/service/DataService.java

+ 2 - 1
DataFusion/src/com/zskk/service/DataService.java

@@ -37,7 +37,6 @@ public class DataService {
 
 	private static final OkHttpClient OKHTTP_CLIENT = new OkHttpClient();
 	
-    OSS OSS_CLIENT = new OSSClientBuilder().build(PropKit.get("oss_endpoint"), PropKit.get("oss_accessKey"), PropKit.get("oss_secretKey"));
 
 	/**
 	 * 获取未出报告的检查列表
@@ -118,6 +117,8 @@ public class DataService {
 	 * @throws FileNotFoundException 
 	 */
 	public void saveAnnex(Map<String, String> map, String filePath) throws FileNotFoundException {
+	    OSS OSS_CLIENT = new OSSClientBuilder().build(PropKit.get("oss_endpoint"), PropKit.get("oss_accessKey"), PropKit.get("oss_secretKey"));
+
 		String fileNameStr[] = filePath.split("/");
 		String fileName = fileNameStr[fileNameStr.length - 1];
 		String fileStorePath = getFileWithUrl(filePath, fileName);