Authored by mali

回退代码

... ... @@ -210,11 +210,11 @@ public class UfoLiveService {
// 查询当前登录用户默认的摄像头设备
public Integer queryInitCameraCode(QiniuLiveRecord req) {
Integer liveCameraCode = liveRecordTimeMapper.selectCameraByOrderCode(req.getOrderCode()); // 优先取录制按钮时候保存的摄像头编号
/*Integer liveCameraCode = liveRecordTimeMapper.selectCameraByOrderCode(req.getOrderCode()); // 优先取录制按钮时候保存的摄像头编号
if (null != liveCameraCode) {
req.setCameraCode(null == req.getCameraCode() ? liveCameraCode : req.getCameraCode());
return liveCameraCode;
}
}*/
// UserCameraRecord userCameraRecord = userCameraRecordMapper.selectUserCameraRecord(new UserHelper().getUserId());
Optional<Integer> phoneCamera = Optional.ofNullable(req.getPhoneUid()).map(phoneUidCameraService::selectByphoneUid).map(PhoneUidCameraBo::getCameraCode);
... ...