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
123e8136
Commit
123e8136
authored
Jul 17, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code format
parent
be12296a
Pipeline
#9923
passed with stages
in 32 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
MediaController.php
app/Http/Controllers/Api/Client/MediaController.php
+3
-1
list.blade.php
resources/views/admin/media_category/list.blade.php
+1
-1
No files found.
app/Http/Controllers/Api/Client/MediaController.php
View file @
123e8136
...
@@ -16,7 +16,7 @@ class MediaController extends Controller
...
@@ -16,7 +16,7 @@ class MediaController extends Controller
private
$bucketList
=
[
private
$bucketList
=
[
'develop'
=>
'dev-offcncloud'
,
'develop'
=>
'dev-offcncloud'
,
'test'
=>
'test-offcncloud'
,
'test'
=>
'test-offcncloud'
,
'master'
=>
'offcncloud'
,
'master'
=>
'
media-
offcncloud'
,
];
];
protected
$domain
=
[
protected
$domain
=
[
...
@@ -56,6 +56,8 @@ class MediaController extends Controller
...
@@ -56,6 +56,8 @@ class MediaController extends Controller
$key
=
$request
->
key
??
null
;
$key
=
$request
->
key
??
null
;
$token
=
QiniuModel
::
uploadToken
(
$this
->
bucketList
[
$branch
],
$key
);
$token
=
QiniuModel
::
uploadToken
(
$this
->
bucketList
[
$branch
],
$key
);
$domain
=
$this
->
domain
[
$branch
];
$domain
=
$this
->
domain
[
$branch
];
...
...
resources/views/admin/media_category/list.blade.php
View file @
123e8136
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</button>
</button>
<form>
<form>
<input
type=
"text"
name=
"name"
class=
"form-input"
placeholder=
"类别名称"
value=
"{{$name}}"
>
<input
type=
"text"
name=
"name"
class=
"form-input"
placeholder=
"类别名称"
value=
"{{$name}}"
autocomplete=
"off"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
搜索
</button>
<button
type=
"submit"
class=
"btn btn-primary"
>
搜索
</button>
</form>
</form>
<span
style=
"display: inline-block;height: 40px;line-height: 40px; float: right"
>
共{{$media_categories->total()}}条
</span>
<span
style=
"display: inline-block;height: 40px;line-height: 40px; float: right"
>
共{{$media_categories->total()}}条
</span>
...
...
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