Commit 37f68677 by 周业恒

fix baidu

parents 37b3a4ef a0a713b8
Pipeline #20623 passed with stages
in 1 minute 5 seconds
...@@ -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());
...@@ -48,4 +48,4 @@ class BaiduOssModel ...@@ -48,4 +48,4 @@ class BaiduOssModel
return $domain; return $domain;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment