Merge branch 'wq' of SH-Arbitrate/Arbitrate-Backend into dev
This commit was merged in pull request #335.
This commit is contained in:
+1
-1
@@ -3704,7 +3704,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
|||||||
// 查询最大房间号
|
// 查询最大房间号
|
||||||
Long maxRoomId = caseApplicationMapper.selectMaxRoomId();
|
Long maxRoomId = caseApplicationMapper.selectMaxRoomId();
|
||||||
|
|
||||||
if (null == maxRoomId || maxRoomId > 4294967294L) {
|
if (null == maxRoomId || maxRoomId > 4294967294L/2) {
|
||||||
return 1L;
|
return 1L;
|
||||||
} else {
|
} else {
|
||||||
return maxRoomId + 1;
|
return maxRoomId + 1;
|
||||||
|
|||||||
+14
@@ -3,6 +3,7 @@ package com.ruoyi.wisdomarbitrate.service.impl;
|
|||||||
import cn.hutool.core.collection.CollectionUtil;
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.hutool.http.HttpUtil;
|
import cn.hutool.http.HttpUtil;
|
||||||
|
import cn.hutool.json.JSONUtil;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
@@ -134,7 +135,20 @@ public class VideoServiceImpl implements VideoService {
|
|||||||
String mediaId = jsonObject3.getString("MediaId");
|
String mediaId = jsonObject3.getString("MediaId");
|
||||||
// 建立相关的数据库用来存储音视频录制地址并和相关的业务ID绑定,用于后续下载
|
// 建立相关的数据库用来存储音视频录制地址并和相关的业务ID绑定,用于后续下载
|
||||||
try {
|
try {
|
||||||
|
// 调解系统roomId>4294967294L/2
|
||||||
|
if(StrUtil.isNotEmpty(roomId)) {
|
||||||
|
if (Integer.getInteger(roomId) > 4294967294L / 2) {
|
||||||
|
// 调用调解系统
|
||||||
|
cn.hutool.json.JSONObject params = JSONUtil.createObj();
|
||||||
|
params.set("roomId",roomId);
|
||||||
|
params.set("fileId",fileId);
|
||||||
|
params.set("videoUrl",videoUrl);
|
||||||
|
HttpUtil.post("http://172.16.1.14:6001/video/videoRollBack",params.toJSONString(2));
|
||||||
|
|
||||||
|
} else {
|
||||||
downloadImage(fileId, videoUrl, roomId);
|
downloadImage(fileId, videoUrl, roomId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user