Przeglądaj źródła

islogin接口资源删除标识增加默认值为false

dengsixing 2 lat temu
rodzic
commit
a539bf7b5e

+ 3 - 2
src/main/java/com/fdkankan/scene/service/impl/SceneServiceImpl.java

@@ -138,6 +138,7 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
 
         //判断本地资源是否已本删除,如果已删除,前端根据字段值为true提示用户不能使用某些功能,需要重算
         Date algorithmTime = sceneProEntity.getCreateTime();
+        jsonObject.put("sourceExpired", false);
         if (!ObjectUtils.isEmpty(expiredMonth) && com.fdkankan.common.util.DateUtil.delay(algorithmTime, expiredMonth, Calendar.MONTH).before(new Date())) {
             jsonObject.put("sourceExpired", true);
         }
@@ -382,8 +383,8 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
         }
 
         //先从备份文件下拉取
-        CreateObjUtil.ossUtilCp("video/video" +sceneProEntity.getNum()  + File.separator + "back" + File.separator,
-            sceneProEntity.getDataSource() + "_rv" + File.separator + "videoback_temp");
+        fYunFileService.downloadFileByCommand(sceneProEntity.getDataSource() + "_rv" + File.separator + "videoback_temp",
+            "video/video" +sceneProEntity.getNum()  + File.separator + "back" + File.separator);
 
         String backpathtemp = sceneProEntity.getDataSource() + "_rv" + File.separator + "videoback_temp";
         File fileback = new File(backpathtemp);