Skip to content

Commit

Permalink
Update AliOssServiceProvider.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobcyl authored Apr 25, 2017
1 parent 7cf8fb6 commit 0e5bf4c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/AliOssServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ public function boot()
$accessId = $config['access_id'];
$accessKey = $config['access_key'];
$endPoint = $config['endpoint'];
$cdnDomain = $config['cdnDomain'];
$cdnDomain = empty($config['cdnDomain']) ? '' : $config['cdnDomain'];
$bucket = $config['bucket'];
$isCname = $config['isCName'];
$debug = $config['debug'];
$ssl = empty($config['ssl']) ? false : $config['ssl'];
$isCname = empty($config['isCName']) ? false : $config['isCName'];
$debug = empty($config['debug']) ? false : $config['debug'];

$client = new OssClient($accessId, $accessKey, $endPoint, $isCname);
$adapter = new AliOssAdapter($client, $bucket, $endPoint, $app['request']->secure(), $isCname, $debug, $cdnDomain);
$adapter = new AliOssAdapter($client, $bucket, $endPoint, $ssl, $isCname, $debug, $cdnDomain);

//Log::debug($client);
$filesystem = new Filesystem($adapter);
Expand Down

0 comments on commit 0e5bf4c

Please sign in to comment.