付智勇

no message

... ... @@ -80,8 +80,9 @@ recordInfoController.prototype.tencentRecordInfo = async(ctx,next)=>{
recordInfoController.prototype.getRecordFileURL = async(ctx,next)=>{
try {
const path = ctx.request.body.path;
let recordInfo = await recordInfoService.getRecordFileURL(path)
const time = ctx.request.body.time;
const path = ctx.request.body.path;
let recordInfo = await recordInfoService.getRecordFileURL(path,time)
return recordInfo;
} catch (e) {
console.log(e)
... ...
... ... @@ -43,13 +43,13 @@ recordInfoService.prototype.tencentRecordInfo = async(channelId)=>{
}
}
recordInfoService.prototype.getRecordFileURL = async(URL)=>{
recordInfoService.prototype.getRecordFileURL = async(path,time)=>{
try {
let path = '/netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples'+URL
let myPath = '/Users/fzy/Downloads/Agora_Recording_SDK_for_Linux_FULL/samples/'+URL
let pathURL = '/netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples/'+time+"/"+path
let myPath = '/Users/fzy/Downloads/Agora_Recording_SDK_for_Linux_FULL/samples/'+time+"/"+path
let shell = `/20171011/markettest_1227676976_023539/`
// let filenames = await callfile.exec(myPath)
let files=fs.readdirSync(path);
let files=fs.readdirSync(myPath);
console.log(files)
return files
} catch (error) {
... ...