|
@@ -85,7 +85,7 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
|
|
|
// 封装签名
|
|
|
Map<String, String> body = new LinkedHashMap<>();
|
|
|
body.put("policy", temporarySignature.getPolicy());
|
|
|
- body.put("AccessKeyId", sk);
|
|
|
+ body.put("AccessKeyId", ak);
|
|
|
body.put("signature", temporarySignature.getSignature());
|
|
|
body.put("key", objectKey);
|
|
|
singVo.setUploadBody(body);
|
|
@@ -146,7 +146,7 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
|
|
|
@Override
|
|
|
public void saveFile(List<ObsFile> obsFileList, Long businessId, Integer businessType) {
|
|
|
// 切换到从库
|
|
|
- if (obsFileList.size() == 0) {
|
|
|
+ if (obsFileList == null || obsFileList.size() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -170,7 +170,7 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
|
|
|
@DS(DatasourceConstant.BASE)
|
|
|
@Override
|
|
|
public void editFile(List<ObsFile> obsFileList, Long businessId, Integer businessType) {
|
|
|
- if (obsFileList.size() == 0) {
|
|
|
+ if (obsFileList == null || obsFileList.size() == 0) {
|
|
|
return;
|
|
|
}
|
|
|
|