Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
付智勇
/
koa2_Sequelize_project
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
付智勇
8 years ago
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
20d53e347f8de2cdb9a0652b2dd02fafe8e241bc
20d53e34
1 parent
9df626fe
no message
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
controller/userController.js
routes/users.js
controller/userController.js
查看文件 @
20d53e3
...
...
@@ -123,7 +123,7 @@ userController.prototype.getStu = async(ctx, next) =>{
return
status
.
paramError
(
'type'
);
}
let
page
=
ctx
.
header
.
page
?
Number
(
ctx
.
header
.
page
):
ctx
.
header
.
page
;
let
pageno
=
ctx
.
header
.
pageno
;
let
pageno
=
ctx
.
header
.
pageno
?
Number
(
ctx
.
header
.
pageno
):
ctx
.
header
.
pageno
;
let
stu
=
await
userService
.
getStu
(
stuType
,
page
,
pageno
);
return
stu
}
catch
(
error
)
{
...
...
routes/users.js
查看文件 @
20d53e3
...
...
@@ -116,7 +116,7 @@ router.post('/encryptionToken',async (ctx, next) => {
try
{
let
body
=
ctx
.
request
.
body
;
let
inspectMediaChannel
=
await
inspectMediaChannelKey
(
body
.
appI
D
,
body
.
appCertificate
,
body
.
channel
,
body
.
uid
)
let
inspectMediaChannel
=
await
inspectMediaChannelKey
(
body
.
appI
d
,
body
.
appCertificate
,
body
.
channel
,
body
.
uid
)
ctx
.
response
.
status
=
200
;
ctx
.
response
.
body
=
inspectMediaChannel
}
catch
(
e
){
...
...
@@ -133,7 +133,7 @@ router.post('/Recording',async (ctx, next) => {
try
{
let
body
=
ctx
.
request
.
body
;
console
.
log
()
let
Recording
=
await
shellUtil
.
Recording
(
body
.
appI
D
,
body
.
uid
,
body
.
channel
,
body
.
channelKey
)
let
Recording
=
await
shellUtil
.
Recording
(
body
.
appI
d
,
body
.
uid
,
body
.
channel
,
body
.
channelKey
)
ctx
.
response
.
status
=
200
;
ctx
.
response
.
body
=
{
msg
:
Recording
};
}
catch
(
e
){
...
...
请
注册
或
登录
后发表评论