Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2023-02-06 15:15:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0721764a879d7e85461fc9b85d7558d32ce2fb94
0721764a
1 parent
a8ce10c8
1.优化ffmpeg命令,适配各种类型视频
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
app/Admin/Controllers/ImmerseController.php
app/Admin/Controllers/ImmerseController.php
View file @
0721764
...
...
@@ -42,7 +42,16 @@ class ImmerseController extends AdminController
});
$grid
->
column
(
'type'
,
'类型'
)
->
using
([
1
=>
'音频'
,
2
=>
'视频'
]);
$grid
->
column
(
'duration'
,
'时长'
);
$grid
->
column
(
'size'
,
'大小'
);
$grid
->
column
(
'size'
,
'大小'
)
->
display
(
function
(
$value
){
$size
=
$value
>
(
1024
)
?
(
$value
>
(
1024
*
1024
)
?
(
$value
>
(
1024
*
1024
*
1024
)
?
round
(
$value
/
(
1024
*
1024
*
1024
),
2
)
.
"GB"
:
round
(
$value
/
(
1024
*
1024
),
2
)
.
"MB"
)
:
round
(
$value
/
1024
,
2
)
.
"KB"
)
:
$value
.
'Bytes'
;
return
$size
;
});
$grid
->
column
(
'poem_id'
);
$grid
->
column
(
'temp_id'
);
$grid
->
column
(
'thumbnail'
)
->
image
();
...
...
Please
register
or
login
to post a comment