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