Jelajahi Sumber

相机容量不足不能复制

lyhzzz 2 tahun lalu
induk
melakukan
5378893354

+ 2 - 2
src/main/java/com/fdkankan/ucenter/service/impl/SceneProServiceImpl.java

@@ -669,12 +669,12 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
         if(incrementType.getCameraCapacity() != -1){
             Long usedSpace = detailEntity.getUsedSpace();
             if( scenePro != null && scenePro.getSpace() + usedSpace > incrementType.getCameraCapacity() * 1024 * 1024 * 1024L){
-                scenePro.setPayStatus(-2);
+                throw new BusinessException(CameraConstant.FAILURE_CODE_6008, CameraConstant.FAILURE_MSG_6008);
             }
             if( scenePlus != null ){
                 ScenePlusExt ext = scenePlusExtService.getByPlusId(scenePlus.getId());
                 if(ext.getSpace() + usedSpace > incrementType.getCameraCapacity() * 1024 * 1024 * 1024L){
-                    scenePlus.setPayStatus(-2);
+                    throw new BusinessException(CameraConstant.FAILURE_CODE_6008, CameraConstant.FAILURE_MSG_6008);
                 }
             }
         }