|
@@ -688,7 +688,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
byte[] res = RSAEncrypt.decrypt(RSAEncrypt.loadPrivateKeyByStr(RSAEncrypt.loadPrivateKeyByFile()),
|
|
|
base64.decode(cipher));
|
|
|
String restr = new String(res, "UTF-8");
|
|
|
- log.debug("upload-params解密结果:" + restr);
|
|
|
+ log.info("upload-params解密结果:" + restr);
|
|
|
String[] strArr = restr.split(SPLICE);
|
|
|
if (strArr.length != 6) {
|
|
|
throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
@@ -716,7 +716,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
throw new BusinessException(ErrorCode.PARAM_REQUIRED.code(),"md5为空。");
|
|
|
}
|
|
|
long size = file.getSize();
|
|
|
- log.warn("fileId:"+fileId+"---picNum:"+picNum+"---size:"+size+"---md5:"+md5+"---mac:"+mac);
|
|
|
+ log.info("mac:{}, fileId:{}, picNum:{}, md5:{}, chunk:{}", mac, fileId, picNum, md5, chunk);
|
|
|
chunk = chunk.split(SPLICE)[0];
|
|
|
// 获取文件名
|
|
|
String fileName = file.getOriginalFilename();
|
|
@@ -738,6 +738,7 @@ public class SceneFileBuildServiceImpl extends ServiceImpl<ISceneFileBuildMapper
|
|
|
|
|
|
String yunFilePath = LocalConstants.BASE_PATH.concat(fYunFileConfig.getBucket()).concat(File.separator).concat(ConstantFilePath.OSS_PREFIX)
|
|
|
.concat(filePath).concat(File.separator).concat(fileName);
|
|
|
+ log.info("yunFilePath:{}", yunFilePath);
|
|
|
|
|
|
boolean needUpload = false;
|
|
|
File yunFile = new File(yunFilePath);
|