继续操作前请注册或者登录。
付智勇

no message

@@ -80,8 +80,9 @@ recordInfoController.prototype.tencentRecordInfo = async(ctx,next)=>{ @@ -80,8 +80,9 @@ recordInfoController.prototype.tencentRecordInfo = async(ctx,next)=>{
80 80
81 recordInfoController.prototype.getRecordFileURL = async(ctx,next)=>{ 81 recordInfoController.prototype.getRecordFileURL = async(ctx,next)=>{
82 try { 82 try {
  83 + const time = ctx.request.body.time;
83 const path = ctx.request.body.path; 84 const path = ctx.request.body.path;
84 - let recordInfo = await recordInfoService.getRecordFileURL(path) 85 + let recordInfo = await recordInfoService.getRecordFileURL(path,time)
85 return recordInfo; 86 return recordInfo;
86 } catch (e) { 87 } catch (e) {
87 console.log(e) 88 console.log(e)
@@ -43,13 +43,13 @@ recordInfoService.prototype.tencentRecordInfo = async(channelId)=>{ @@ -43,13 +43,13 @@ recordInfoService.prototype.tencentRecordInfo = async(channelId)=>{
43 } 43 }
44 } 44 }
45 45
46 -recordInfoService.prototype.getRecordFileURL = async(URL)=>{ 46 +recordInfoService.prototype.getRecordFileURL = async(path,time)=>{
47 try { 47 try {
48 - let path = '/netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples'+URL  
49 - let myPath = '/Users/fzy/Downloads/Agora_Recording_SDK_for_Linux_FULL/samples/'+URL 48 + let pathURL = '/netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples/'+time+"/"+path
  49 + let myPath = '/Users/fzy/Downloads/Agora_Recording_SDK_for_Linux_FULL/samples/'+time+"/"+path
50 let shell = `/20171011/markettest_1227676976_023539/` 50 let shell = `/20171011/markettest_1227676976_023539/`
51 // let filenames = await callfile.exec(myPath) 51 // let filenames = await callfile.exec(myPath)
52 - let files=fs.readdirSync(path); 52 + let files=fs.readdirSync(myPath);
53 console.log(files) 53 console.log(files)
54 return files 54 return files
55 } catch (error) { 55 } catch (error) {