2024-01-18 10:46:33 +08:00
|
|
|
import axios from "@/utils/request";
|
2024-01-26 16:06:09 +08:00
|
|
|
let baseUrlZC = 'https://api.xayunmei.com/zhongcaiapi';
|
2024-03-05 11:51:02 +08:00
|
|
|
let baseUrl = 'https://api.xayunmei.com/tiaojieapi';
|
2024-01-26 16:06:09 +08:00
|
|
|
// let baseUrl = 'http://121.40.189.20:6001';
|
2024-01-18 10:46:33 +08:00
|
|
|
// 开始云端录制
|
|
|
|
|
export function startVideo(data) {
|
2024-01-26 16:06:09 +08:00
|
|
|
let appType = sessionStorage.getItem('type');
|
|
|
|
|
if (appType == 'tiaojie') {
|
|
|
|
|
return axios.post(`${baseUrl}/video/openCloudRecording`, data);
|
|
|
|
|
} else {
|
|
|
|
|
return axios.post(`${baseUrlZC}/video/openCloudRecording`, data);
|
|
|
|
|
}
|
2024-01-18 10:46:33 +08:00
|
|
|
}
|
|
|
|
|
// 结束云端录制
|
|
|
|
|
export function stopVideo(data) {
|
2024-01-26 16:06:09 +08:00
|
|
|
let appType = sessionStorage.getItem('type');
|
|
|
|
|
if (appType == 'tiaojie') {
|
|
|
|
|
return axios.post(`${baseUrl}/video/closeDeleteCloudRecording?taskId=${data}`);
|
|
|
|
|
} else {
|
|
|
|
|
return axios.post(`${baseUrlZC}/video/closeDeleteCloudRecording?taskId=${data}`);
|
|
|
|
|
}
|
2024-01-18 10:46:33 +08:00
|
|
|
}
|
|
|
|
|
// 解散房间
|
|
|
|
|
export function destructionRoom(data) {
|
2024-01-26 16:06:09 +08:00
|
|
|
let appType = sessionStorage.getItem('type');
|
|
|
|
|
if (appType == 'tiaojie') {
|
|
|
|
|
return axios.post(`${baseUrl}/video/dissolveRoom`, data);
|
|
|
|
|
} else {
|
|
|
|
|
return axios.post(`${baseUrlZC}/video/dissolveRoom`, data);
|
|
|
|
|
}
|
2024-01-18 10:46:33 +08:00
|
|
|
}
|
|
|
|
|
// 根据html字符串转pdf并且和案件关联
|
|
|
|
|
export function htmlToPDF(data) {
|
2024-01-26 16:06:09 +08:00
|
|
|
let appType = sessionStorage.getItem('type');
|
|
|
|
|
if (appType == 'tiaojie') {
|
|
|
|
|
return axios.post(`${baseUrl}/video/htmlToPDF`, data);
|
|
|
|
|
} else {
|
|
|
|
|
return axios.post(`${baseUrlZC}/video/htmlToPDF`, data);
|
|
|
|
|
}
|
2024-01-18 10:46:33 +08:00
|
|
|
}
|
|
|
|
|
// 根据userId查询该用户是否是秘书
|
|
|
|
|
export function secretaryRoleByUserId(userId) {
|
2024-01-26 16:06:09 +08:00
|
|
|
let appType = sessionStorage.getItem('type');
|
|
|
|
|
if (appType == 'tiaojie') {
|
|
|
|
|
return axios.get(`${baseUrl}/video/secretaryRoleByUserId?userId=${userId}`);
|
|
|
|
|
} else {
|
|
|
|
|
return axios.get(`${baseUrlZC}/video/secretaryRoleByUserId?userId=${userId}`);
|
|
|
|
|
}
|
2024-01-18 10:46:33 +08:00
|
|
|
}
|