Commit a4522d7c by 杨昕

Merge branch 'test' into 'master'

Test

See merge request !14
parents 66766fec 8b8994b7
Pipeline #10100 passed with stages
in 39 seconds
...@@ -137,7 +137,8 @@ class MediaModel extends Eloquent ...@@ -137,7 +137,8 @@ class MediaModel extends Eloquent
} }
$media_url = $request->media_url; $media_url = $request->media_url;
$media_url = str_replace($media_url,"http:","https:".substr($media_url,5));
$media_url = str_replace("http:","https:".substr($media_url,6),$media_url);
/** /**
......
...@@ -85,11 +85,11 @@ return [ ...@@ -85,11 +85,11 @@ return [
'mongodb' => [ 'mongodb' => [
'driver' => 'mongodb', 'driver' => 'mongodb',
'host' => env('mg_host')??'mongo.eoffcn.com', 'host' => env('mg_host'),
'port' => env('mg_port')??'28017', 'port' => env('mg_port'),
'database' => 'video_media', 'database' => 'video_media',
'username' => env('mg_username')??'root', 'username' => env('mg_username'),
'password' => env("mg_password")??'FHHTH98AWAPoyweEasdfadfaaf', 'password' => env("mg_password"),
'options' => [ 'options' => [
'database' => 'admin', // sets the authentication database required by mongo 3 'database' => 'admin', // sets the authentication database required by mongo 3
] ]
......
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