正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -123,7 +123,7 @@ userController.prototype.getStu = async(ctx, next) =>{ | @@ -123,7 +123,7 @@ userController.prototype.getStu = async(ctx, next) =>{ | ||
| 123 | return status.paramError('type'); | 123 | return status.paramError('type'); |
| 124 | } | 124 | } |
| 125 | let page = ctx.header.page ? Number(ctx.header.page):ctx.header.page; | 125 | let page = ctx.header.page ? Number(ctx.header.page):ctx.header.page; |
| 126 | - let pageno = ctx.header.pageno; | 126 | + let pageno = ctx.header.pageno ? Number(ctx.header.pageno):ctx.header.pageno; |
| 127 | let stu = await userService.getStu(stuType,page,pageno); | 127 | let stu = await userService.getStu(stuType,page,pageno); |
| 128 | return stu | 128 | return stu |
| 129 | } catch (error) { | 129 | } catch (error) { |
| @@ -116,7 +116,7 @@ router.post('/encryptionToken',async (ctx, next) => { | @@ -116,7 +116,7 @@ router.post('/encryptionToken',async (ctx, next) => { | ||
| 116 | try{ | 116 | try{ |
| 117 | let body = ctx.request.body; | 117 | let body = ctx.request.body; |
| 118 | 118 | ||
| 119 | - let inspectMediaChannel = await inspectMediaChannelKey(body.appID,body.appCertificate,body.channel,body.uid) | 119 | + let inspectMediaChannel = await inspectMediaChannelKey(body.appId,body.appCertificate,body.channel,body.uid) |
| 120 | ctx.response.status= 200; | 120 | ctx.response.status= 200; |
| 121 | ctx.response.body= inspectMediaChannel | 121 | ctx.response.body= inspectMediaChannel |
| 122 | }catch(e){ | 122 | }catch(e){ |
| @@ -133,7 +133,7 @@ router.post('/Recording',async (ctx, next) => { | @@ -133,7 +133,7 @@ router.post('/Recording',async (ctx, next) => { | ||
| 133 | try{ | 133 | try{ |
| 134 | let body = ctx.request.body; | 134 | let body = ctx.request.body; |
| 135 | console.log() | 135 | console.log() |
| 136 | - let Recording = await shellUtil.Recording(body.appID,body.uid,body.channel,body.channelKey) | 136 | + let Recording = await shellUtil.Recording(body.appId,body.uid,body.channel,body.channelKey) |
| 137 | ctx.response.status= 200; | 137 | ctx.response.status= 200; |
| 138 | ctx.response.body= {msg:Recording}; | 138 | ctx.response.body= {msg:Recording}; |
| 139 | }catch(e){ | 139 | }catch(e){ |
-
请 注册 或 登录 后发表评论