@@ -44,15 +44,15 @@ |
||
44 | 44 | $debug = empty($config['debug']) ? false : $config['debug']; |
45 | 45 | |
46 | 46 | $endPoint = $config['endpoint']; // 默认作为外部节点 |
47 | - $epInternal= $isCname?$cdnDomain:(empty($config['endpoint_internal']) ? $endPoint : $config['endpoint_internal']); // 内部节点 |
|
47 | + $epInternal = $isCname ? $cdnDomain : (empty($config['endpoint_internal']) ? $endPoint : $config['endpoint_internal']); // 内部节点 |
|
48 | 48 | |
49 | - if($debug) Log::debug('OSS config:', $config); |
|
49 | + if ($debug) Log::debug('OSS config:', $config); |
|
50 | 50 | |
51 | 51 | $client = new OssClient($accessId, $accessKey, $epInternal, $isCname, $securityToken); |
52 | 52 | $adapter = new AliOssAdapter($client, $bucket, $endPoint, $ssl, $isCname, $debug, $cdnDomain); |
53 | 53 | |
54 | 54 | //Log::debug($client); |
55 | - $filesystem = new Filesystem($adapter); |
|
55 | + $filesystem = new Filesystem($adapter); |
|
56 | 56 | |
57 | 57 | $filesystem->addPlugin(new PutFile()); |
58 | 58 | $filesystem->addPlugin(new PutRemoteFile()); |
@@ -46,7 +46,9 @@ |
||
46 | 46 | $endPoint = $config['endpoint']; // 默认作为外部节点 |
47 | 47 | $epInternal= $isCname?$cdnDomain:(empty($config['endpoint_internal']) ? $endPoint : $config['endpoint_internal']); // 内部节点 |
48 | 48 | |
49 | - if($debug) Log::debug('OSS config:', $config); |
|
49 | + if($debug) { |
|
50 | + Log::debug('OSS config:', $config); |
|
51 | + } |
|
50 | 52 | |
51 | 53 | $client = new OssClient($accessId, $accessKey, $epInternal, $isCname, $securityToken); |
52 | 54 | $adapter = new AliOssAdapter($client, $bucket, $endPoint, $ssl, $isCname, $debug, $cdnDomain); |