付智勇

no message

@@ -18,6 +18,8 @@ shell.prototype.Recording =async(appId,uid,channel,channelKey,body)=>{ @@ -18,6 +18,8 @@ shell.prototype.Recording =async(appId,uid,channel,channelKey,body)=>{
18 let r = await recordInfo.create(body); 18 let r = await recordInfo.create(body);
19 if(channelInfo){ 19 if(channelInfo){
20 if(body.status == 2){ 20 if(body.status == 2){
  21 + var channelInfo = await recordStatus.update({status:3},{where:{channel:channel}});
  22 + }else if(channelInfo == 3){
21 var channelInfo = await recordStatus.update({status:1},{where:{channel:channel}}); 23 var channelInfo = await recordStatus.update({status:1},{where:{channel:channel}});
22 }else { 24 }else {
23 throw false ; 25 throw false ;