正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -59,11 +59,11 @@ recordInfoService.prototype.getRecordFileURL = async(path,time)=>{ | @@ -59,11 +59,11 @@ recordInfoService.prototype.getRecordFileURL = async(path,time)=>{ | ||
59 | var channefiles = ''; | 59 | var channefiles = ''; |
60 | addrecord.forEach(function(record,top){ | 60 | addrecord.forEach(function(record,top){ |
61 | let date2 = moment(Number(record.createTime)-8*60*60*1000).format('YYYYMMDDhhmmss') | 61 | let date2 = moment(Number(record.createTime)-8*60*60*1000).format('YYYYMMDDhhmmss') |
62 | - let channeFile = onlinePath+date1; | ||
63 | - var fschannefiles=fs.readdirSync(channeFile); | ||
64 | if(top == 0){ | 62 | if(top == 0){ |
65 | date1 = moment(Number( record.createTime)).format('YYYYMMDD') | 63 | date1 = moment(Number( record.createTime)).format('YYYYMMDD') |
66 | } | 64 | } |
65 | + let channeFile = onlinePath+date1; | ||
66 | + var fschannefiles=fs.readdirSync(channeFile); | ||
67 | console.log(date1) | 67 | console.log(date1) |
68 | fschannefiles.forEach(function(cfile,index){ | 68 | fschannefiles.forEach(function(cfile,index){ |
69 | if(record.channel == cfile.split('_')[0]+'_'+cfile.split("_")[1]){ | 69 | if(record.channel == cfile.split('_')[0]+'_'+cfile.split("_")[1]){ |
-
请 注册 或 登录 后发表评论