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
37f68677
Commit
37f68677
authored
Apr 12, 2023
by
周业恒
Browse files
Options
Browse Files
Download
Plain Diff
fix baidu
parents
37b3a4ef
a0a713b8
Pipeline
#20623
passed with stages
in 1 minute 5 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
BaiduOssModel.php
app/Model/BaiduOssModel.php
+4
-4
No files found.
app/Model/BaiduOssModel.php
View file @
37f68677
...
@@ -36,11 +36,11 @@ class BaiduOssModel
...
@@ -36,11 +36,11 @@ class BaiduOssModel
public
static
function
getDomain
(){
public
static
function
getDomain
(){
try
{
try
{
$branch
=
getenv
(
'branch'
)
?
getenv
(
'branch'
)
:
"test"
;
$branch
=
getenv
(
'branch'
)
?
getenv
(
'branch'
)
:
"test"
;
if
(
$branch
==
"test"
)
{
//
if ($branch == "test") {
$domain
=
"https://media-test-bce.cdn.bcebos.com"
;
$domain
=
"https://media-test-bce.cdn.bcebos.com"
;
}
else
{
//
}else{
$domain
=
"https://media-bce.cdn.bcebos.com"
;
//
$domain = "https://media-bce.cdn.bcebos.com";
}
//
}
}
catch
(
\Exception
$exception
){
}
catch
(
\Exception
$exception
){
throw
new
DatabaseException
(
$exception
->
getMessage
());
throw
new
DatabaseException
(
$exception
->
getMessage
());
...
...
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