|
@@ -238,7 +238,13 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
private void deleteHotDataFromTourJson(String num, List<String> sidList, String bucket){
|
|
|
String key = String.format(UploadFilePath.USER_EDIT_PATH, num) + "tour.json";
|
|
|
String tourJson = fYunFileService.getFileContent(bucket, key);
|
|
|
+ if(StrUtil.isEmpty(tourJson)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
JSONArray jsonArray = JSON.parseArray(tourJson);
|
|
|
+ if(CollUtil.isEmpty(jsonArray)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
jsonArray.stream().forEach(tour->{
|
|
|
JSONObject obj = (JSONObject) tour;
|
|
|
JSONArray itemArra = obj.getJSONArray("list");
|