|
@@ -74,6 +74,12 @@ public class FdUserCameraController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
if(cameraDetailEntity.getUserId() != null){
|
|
if(cameraDetailEntity.getUserId() != null){
|
|
|
|
+ User user = userService.getByUserName(userName);
|
|
|
|
+ if(user != null){
|
|
|
|
+ if(cameraDetailEntity.getUserId().equals(user.getId())){
|
|
|
|
+ return Result.success();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
throw new BusinessException(AppConstant.FAILURE_CODE_4011, AppConstant.FAILURE_MSG_4011);
|
|
throw new BusinessException(AppConstant.FAILURE_CODE_4011, AppConstant.FAILURE_MSG_4011);
|
|
}
|
|
}
|
|
|
|
|