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
58cdb38156b2260fe57eae3dc5677b5750f87e25
58cdb381
1 parent
1a968e4c
no message
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
7 行增加
和
6 行删除
controller/recordInfoController.js
services/recordInfoService.js
controller/recordInfoController.js
查看文件 @
58cdb38
...
...
@@ -80,8 +80,9 @@ recordInfoController.prototype.tencentRecordInfo = async(ctx,next)=>{
recordInfoController
.
prototype
.
getRecordFileURL
=
async
(
ctx
,
next
)
=>
{
try
{
const
path
=
ctx
.
request
.
body
.
path
;
let
recordInfo
=
await
recordInfoService
.
getRecordFileURL
(
path
)
const
time
=
ctx
.
request
.
body
.
time
;
const
path
=
ctx
.
request
.
body
.
path
;
let
recordInfo
=
await
recordInfoService
.
getRecordFileURL
(
path
,
time
)
return
recordInfo
;
}
catch
(
e
)
{
console
.
log
(
e
)
...
...
services/recordInfoService.js
查看文件 @
58cdb38
...
...
@@ -43,13 +43,13 @@ recordInfoService.prototype.tencentRecordInfo = async(channelId)=>{
}
}
recordInfoService
.
prototype
.
getRecordFileURL
=
async
(
URL
)
=>
{
recordInfoService
.
prototype
.
getRecordFileURL
=
async
(
path
,
time
)
=>
{
try
{
let
path
=
'/netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples'
+
URL
let
myPath
=
'/Users/fzy/Downloads/Agora_Recording_SDK_for_Linux_FULL/samples/'
+
URL
let
pathURL
=
'/netWorkSchool/Agora_Recording_SDK_for_Linux_FULL/samples/'
+
time
+
"/"
+
path
let
myPath
=
'/Users/fzy/Downloads/Agora_Recording_SDK_for_Linux_FULL/samples/'
+
time
+
"/"
+
path
let
shell
=
`
/
20171011
/
markettest_1227676976_023539
/
`
// let filenames = await callfile.exec(myPath)
let
files
=
fs
.
readdirSync
(
p
ath
);
let
files
=
fs
.
readdirSync
(
myP
ath
);
console
.
log
(
files
)
return
files
}
catch
(
error
)
{
...
...
请
注册
或
登录
后发表评论