付智勇

no message

... ... @@ -47,29 +47,28 @@ recordInfoService.prototype.tencentRecordInfo = async(channelId)=>{
recordInfoService.prototype.getRecordFileURL = async(path,time)=>{
try {
let onlinePath = '/netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples/'
//let onlinePath = '/Users/fzy/Downloads/Agora_Recording_SDK_for_Linux_FULL/samples/'
//let onlinePath = '/netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples/'
let onlinePath = '/Users/fzy/Downloads/Agora_Recording_SDK_for_Linux_FULL/samples/'
var backFile=[];
var fileU
let addrecord = await recordInfo.findAll({where:{channel:path}});
console.log('录制文件',addrecord)
let noFile = [];
var allFile = [];
var channefiles = [];
var channefiles = '';
addrecord.forEach(function(record,top){
let date1 = moment(Number( record.createTime)).format('YYYYMMDD')
let date2 = moment(Number(record.createTime)-8*60*60*1000).format('YYYYMMDDhhmmss')
let channeFile = onlinePath+date1;
var fschannefiles=fs.readdirSync(channeFile);
if(top == 1){
channefiles=fschannefiles;
}
fschannefiles.forEach(function(cfile,index){
if(record.channel == cfile.split('_')[0]+'_'+cfile.split("_")[1]){
let pathURL = onlinePath+date1+"/"+cfile;
let files=fs.readdirSync(pathURL);
if(top == 1){
allFile=files;
allFile=files;
channefiles = cfile;
}
files.forEach(function(file){
let type = file.split('.');
... ...