1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-10-11 02:05:15 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

数据库 file_info, file_object_info 大调整;删除ScheduleTask代码及数据库

This commit is contained in:
2022-04-20 15:57:06 +08:00
parent 7d8ff462ee
commit 229c944022
23 changed files with 519 additions and 917 deletions

View File

@@ -85,11 +85,15 @@ public class QCloudCosUtils {
}
public Boolean doesObjectExist(String folder, String objectKey) {
return doesObjectExist(folder + objectKey);
}
public Boolean doesObjectExist(String filePath) {
COSClient cosClient = createCOSClient();
// 存储桶的命名格式为 BucketName-APPID此处填写的存储桶名称必须为此格式
String bucketName = qCloudCosConfig.getBucketName();
// 对象键(Key)是对象在存储桶中的唯一标识。详情请参见 [对象键](https://cloud.tencent.com/document/product/436/13324)
String key = qCloudCosConfig.getKeyName() + folder + objectKey;
String key = qCloudCosConfig.getKeyName() + filePath;
return cosClient.doesObjectExist(bucketName, key);
}