lyhzzz 1 年之前
父节点
当前提交
43cecff85c
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/main/java/com/fdkankan/manage/service/impl/SceneProServiceImpl.java

+ 4 - 1
src/main/java/com/fdkankan/manage/service/impl/SceneProServiceImpl.java

@@ -161,7 +161,10 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
      */
     @Override
     public void lockOrUnLockBySpace(CameraDetail cameraDetail) {
-        if(cameraDetail == null || cameraDetail.getType() ==10 || cameraDetail.getType() == 11){
+        if(cameraDetail == null ){
+            return;
+        }
+        if(!"aws".equals(CacheUtil.uploadType) && ( cameraDetail.getType() ==10 || cameraDetail.getType() == 11)){
             return;
         }
         ScenePayStatusVo scenePayStatusVo = new ScenePayStatusVo(cameraDetail.getCameraId());