刘韬 %!s(int64=3) %!d(string=hai) anos
pai
achega
15f7015cbb
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);