From f3f904c62ef49a64ffca735eaddb6ad59b47f139 Mon Sep 17 00:00:00 2001 From: 付智勇 <fuzhiyong@efangtec.com> Date: Wed, 25 Oct 2017 15:28:15 +0800 Subject: [PATCH] 录制 --- util/Agora_Recording_SDK_for_Linux_FULL/samples/shellUtil.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/Agora_Recording_SDK_for_Linux_FULL/samples/shellUtil.js b/util/Agora_Recording_SDK_for_Linux_FULL/samples/shellUtil.js index 96e6b65..5a9b47d 100644 --- a/util/Agora_Recording_SDK_for_Linux_FULL/samples/shellUtil.js +++ b/util/Agora_Recording_SDK_for_Linux_FULL/samples/shellUtil.js @@ -17,13 +17,13 @@ shell.prototype.Recording =async(appId,uid,channel,channelKey,body)=>{ var channelInfo = await recordStatus.findOne({where:{channel:channel}}); let r = await recordInfo.create(body); if(channelInfo){ - if(channelInfo.status == 0){ + if(body.status == 2){ var channelInfo = await recordStatus.update({status:1},{where:{channel:channel}}); - }else if(channelInfo.status == 1){ + }else { throw false ; } }else{ - var channelInfo = await recordStatus.create({id:uuid.db32(),channel:channel,status:1}); + var channelInfo = await recordStatus.create({id:uuid.db32(),channel:channel,status:body.status}); } let shell =`cd /netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples/ && ./Recorder_local`+ ` --appId ` +appId + -- libgit2 0.24.0