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
付智勇
7 years ago
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3f904c62ef49a64ffca735eaddb6ad59b47f139
f3f904c6
1 parent
fb1830ad
录制
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
util/Agora_Recording_SDK_for_Linux_FULL/samples/shellUtil.js
util/Agora_Recording_SDK_for_Linux_FULL/samples/shellUtil.js
查看文件 @
f3f904c
...
...
@@ -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
+
...
...
请
注册
或
登录
后发表评论