付智勇

录制

@@ -17,13 +17,13 @@ shell.prototype.Recording =async(appId,uid,channel,channelKey,body)=>{ @@ -17,13 +17,13 @@ shell.prototype.Recording =async(appId,uid,channel,channelKey,body)=>{
17 var channelInfo = await recordStatus.findOne({where:{channel:channel}}); 17 var channelInfo = await recordStatus.findOne({where:{channel:channel}});
18 let r = await recordInfo.create(body); 18 let r = await recordInfo.create(body);
19 if(channelInfo){ 19 if(channelInfo){
20 - if(channelInfo.status == 0){ 20 + if(body.status == 2){
21 var channelInfo = await recordStatus.update({status:1},{where:{channel:channel}}); 21 var channelInfo = await recordStatus.update({status:1},{where:{channel:channel}});
22 - }else if(channelInfo.status == 1){ 22 + }else {
23 throw false ; 23 throw false ;
24 } 24 }
25 }else{ 25 }else{
26 - var channelInfo = await recordStatus.create({id:uuid.db32(),channel:channel,status:1}); 26 + var channelInfo = await recordStatus.create({id:uuid.db32(),channel:channel,status:body.status});
27 } 27 }
28 let shell =`cd /netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples/ && ./Recorder_local`+ 28 let shell =`cd /netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples/ && ./Recorder_local`+
29 ` --appId ` +appId + 29 ` --appId ` +appId +