Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨昕
media-resource
Commits
1b6d1199
Commit
1b6d1199
authored
Feb 04, 2021
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改视频预览地址
parent
bdc4e130
Pipeline
#13720
passed with stages
in 42 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
MediaController.php
app/Http/Controllers/Web/MediaController.php
+3
-3
media_list.blade.php
resources/views/admin/media/media_list.blade.php
+1
-1
No files found.
app/Http/Controllers/Web/MediaController.php
View file @
1b6d1199
...
...
@@ -12,8 +12,8 @@ use App\Http\Controllers\Controller;
class
MediaController
extends
Controller
{
private
const
PREVIEW_DOMAIN
=
[
'test'
=>
'
preview.t.eoffcn.com
'
,
'master'
=>
'
preview.eoffcn.com
'
'test'
=>
'
https://xue.t.eoffcn.com/preview/temp/play/
'
,
'master'
=>
'
https://xue.eoffcn.com/preview/temp/play/
'
];
/**
...
...
@@ -182,7 +182,7 @@ class MediaController extends Controller
*/
public
function
media_preview
(
Request
$request
,
$mediaNum
){
$branch
=
!
empty
(
getenv
(
'branch'
))
?
getenv
(
'branch'
)
:
"test"
;
$url
=
"http://"
.
self
::
PREVIEW_DOMAIN
[
$branch
]
.
'/'
.
$mediaNum
;
$url
=
self
::
PREVIEW_DOMAIN
[
$branch
]
.
'/'
.
$mediaNum
;
return
redirect
(
$url
);
}
...
...
resources/views/admin/media/media_list.blade.php
View file @
1b6d1199
...
...
@@ -98,7 +98,7 @@
@endif
@if(isset($media["media_num"]))
<a
title=
"视频预览"
href=
"javascript:;"
onclick=
"preview_video(this,'{{$media["
_id
"]}}')"
>
<a
title=
"视频预览"
href=
"javascript:;"
onclick=
"preview_video(this,'{{$media["
media_num
"]}}')"
>
<i
class=
"iconfont"
>

</i>
</a>
@else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment