...
|
...
|
@@ -10,6 +10,7 @@ import com.yoho.core.redis.cluster.annotation.Redis; |
|
|
import com.yoho.core.redis.cluster.operations.nosync.YHRedisTemplate;
|
|
|
import com.yoho.core.redis.cluster.operations.nosync.YHValueOperations;
|
|
|
import com.yoho.core.redis.cluster.operations.serializer.RedisKeyBuilder;
|
|
|
import com.yoho.error.exception.ServiceException;
|
|
|
import com.yoho.order.dal.CameraRecordMapper;
|
|
|
import com.yoho.order.dal.QiniuLiveRecordMapper;
|
|
|
import com.yoho.order.dal.UserCameraRecordMapper;
|
...
|
...
|
@@ -213,6 +214,9 @@ public class UfoLiveService { |
|
|
}
|
|
|
|
|
|
public Boolean saveInitCameraRecord(QNliveReq req) {
|
|
|
if(req.getCameraCode()==null||req.getCameraCode()<=0){
|
|
|
throw new ServiceException(400,"错误:请选择摄像头");
|
|
|
}
|
|
|
Integer userId = new UserHelper().getUserId();
|
|
|
yhValueOperations.set(getRedisKey(userId), String.valueOf(req.getCameraCode()), 12, TimeUnit.HOURS);
|
|
|
|
...
|
...
|
|