|
|
@@ -414,15 +414,16 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|
|
|
- private void publicEvidence(String num, String bucket) {
|
|
|
+ private void publicEvidence(String num, String bucket) throws IOException {
|
|
|
|
|
|
+ String hotJsonPath = String.format(UploadFilePath.USER_EDIT_PATH, num) + "evidence.json";
|
|
|
JSONObject jsonObject1 = sceneEvidenceService.listEvidences(num);
|
|
|
JSONArray evidences = jsonObject1.getJSONArray("evidences");
|
|
|
if(CollUtil.isEmpty(evidences)){
|
|
|
+ fYunFileService.deleteFile(hotJsonPath);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- String hotJsonPath = String.format(UploadFilePath.USER_EDIT_PATH, num) + "evidence.json";
|
|
|
fYunFileService.uploadFile(bucket, evidences.toString().getBytes(StandardCharsets.UTF_8), hotJsonPath);
|
|
|
|
|
|
|
|
|
@@ -705,7 +706,6 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
* </p>
|
|
|
* @author dengsixing
|
|
|
* @date 2022/1/21
|
|
|
- * @param num
|
|
|
* @return com.fdkankan.scene.vo.SceneInfoVO
|
|
|
**/
|
|
|
private SceneInfoVO getSceneInfo4View(SceneInfoParamVO param, HttpServletRequest request) throws Exception{
|