Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-api
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-api
Commits
0b3aaa8e
Commit
0b3aaa8e
authored
Apr 13, 2020
by
刘春刚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add bce
parent
7d598c8d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
+9
-3
.gitignore
.gitignore
+2
-1
MediaController.php
app/Http/Controllers/V1/MediaController.php
+3
-1
composer.json
composer.json
+3
-1
CdnClientSample.php
vendor/bce-php-sdk-0.9.8/CdnClientSample.php
+1
-0
No files found.
.gitignore
View file @
0b3aaa8e
...
...
@@ -2,7 +2,8 @@
/public/hot
/public/storage
/storage/*.key
!/vendor/bce-php-sdk-0.9.8
/vendor
!/vendor/bce-php-sdk-0.9.8/
.env
.env.backup
.phpunit.result.cache
...
...
app/Http/Controllers/V1/MediaController.php
View file @
0b3aaa8e
...
...
@@ -29,9 +29,11 @@ class MediaController extends BaseController
$mediaIdDecode
=
json_decode
(
$mediaId
,
true
);
if
(
empty
(
$mediaIdDecode
)
&&
!
is_array
(
$mediaIdDecode
)){
if
(
empty
(
$mediaIdDecode
)
||
!
is_array
(
$mediaIdDecode
)){
return
$this
->
respondError
(
Constants
::
PARAMETER_ERROR
,
'媒资传入参数格式错误'
);
}
$re
=
$this
->
service
->
getMediaResources
(
$mediaIdDecode
);
$re
=
$this
->
service
->
dealMediaResources
(
$re
,
'met'
);
...
...
composer.json
View file @
0b3aaa8e
...
...
@@ -36,7 +36,9 @@
},
"autoload"
:
{
"psr-4"
:
{
"App
\\
"
:
"app/"
"App
\\
"
:
"app/"
,
"Vendor
\\
Bce
\\
"
:
"vendor/bce-php-sdk-0.9.8"
},
"classmap"
:
[
"database/seeds"
,
...
...
vendor/bce-php-sdk-0.9.8/CdnClientSample.php
View file @
0b3aaa8e
...
...
@@ -34,6 +34,7 @@ class CdnClientTest extends PHPUnit_Framework_TestCase
$this
->
logger
=
LogFactory
::
getLogger
(
get_class
(
$this
));
}
/**
* test create domain
*/
...
...
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