付智勇

no message

@@ -54,7 +54,7 @@ recordInfoController.prototype.stopRecording = async(ctx,next)=>{ @@ -54,7 +54,7 @@ recordInfoController.prototype.stopRecording = async(ctx,next)=>{
54 const body = ctx.request.body; 54 const body = ctx.request.body;
55 body.id = uuid.db32() 55 body.id = uuid.db32()
56 body.createTime = new Date().getTime(); 56 body.createTime = new Date().getTime();
57 - let old = await recordStatus.findOne({where:{channel:channel,status:0}}) 57 + let old = await recordStatus.findOne({where:{channel:channel,status:1}})
58 if(old){ 58 if(old){
59 throw new Error('没有正在录制的课堂') 59 throw new Error('没有正在录制的课堂')
60 } 60 }