|
@@ -2,6 +2,7 @@ package com.fdkankan.scene.Interceptor;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
+import com.fdkankan.common.constant.CommonStatus;
|
|
|
import com.fdkankan.common.constant.ErrorCode;
|
|
|
import com.fdkankan.common.constant.ServerCode;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
@@ -64,6 +65,11 @@ public class CheckCooperationPermitAspect {
|
|
|
throw new BusinessException(ErrorCode.PARAM_REQUIRED);
|
|
|
}
|
|
|
|
|
|
+ //判断是否相机登录,如果是,直接放行
|
|
|
+ if(Objects.nonNull(user.getCameraLogin())
|
|
|
+ && CommonStatus.YES.code().byteValue() == user.getCameraLogin().intValue()){
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
//判断是不是场景原用户,如果是,跳出
|
|
|
ScenePlus scenePlus= scenePlusService.getScenePlusByNum(num);
|