mirror of
https://github.com/tl-open-source/tl-rtc-file.git
synced 2025-10-11 18:30:33 +08:00
feat: 支持绘画同步
feat: 支持敏感词检测 feat: 支持多语言版本 feat: 支持回车发送消息 feat: 支持展示房主,语言版本 feat: 支持分享链接带上语言版本 feat: 支持设置公共聊天频道消息展示条数 feat: 支持固定/临时turn账号切换 feat: 支持一键启动脚本 feat: 支持浏览器控制台打印logo feat: 调整优化svg, icon图标 feat: 调整优化弹窗动画 feat: 调整优化媒体流时间动画 feat: 调整优化oss逻辑 feat: 调整优化报错告警信息
This commit is contained in:
@@ -6,6 +6,7 @@ const bussinessNotify = require("./../../bussiness/notify/notifyHandler")
|
||||
const utils = require("./../../utils/utils");
|
||||
const seafile = require("./../../bussiness/oss/seafile")
|
||||
const rtcCommData = require("./../rtcCommData/commData");
|
||||
const check = require("./../../utils/check/content");
|
||||
|
||||
/**
|
||||
* 添加取件码文件
|
||||
@@ -31,19 +32,17 @@ async function addCodeFile(io, socket, tables, dbClient, data){
|
||||
|
||||
let {handshake, userAgent, ip} = utils.getSocketClientInfo(socket);
|
||||
|
||||
const ossToken = await seafile.seafileGetToken();
|
||||
|
||||
let donwloadLink = ""
|
||||
|
||||
const ossToken = await seafile.seafileGetToken();
|
||||
if(ossToken){
|
||||
let shareLink = await seafile.seafileCreateShareLink(ossToken, {
|
||||
let downloadData = await seafile.seafileGetDownLoadLink(ossToken, {
|
||||
name : data.ossFileName,
|
||||
can_edit : false,
|
||||
can_download : true,
|
||||
expire_days : 1
|
||||
});
|
||||
if(shareLink){
|
||||
donwloadLink = seafile.seafileGetDownLoadLink(shareLink.token);
|
||||
if(downloadData){
|
||||
donwloadLink = downloadData.downloadLink;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +97,7 @@ async function addCodeFile(io, socket, tables, dbClient, data){
|
||||
});
|
||||
bussinessNotify.sendSystemErrorMsg({
|
||||
title: "socket-addCodeFile",
|
||||
data: JSON.stringify(data),
|
||||
room: data.room,
|
||||
from : socket.id,
|
||||
msg : JSON.stringify({
|
||||
|
Reference in New Issue
Block a user