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