mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-01 07:20:56 +00:00
fix: 修改天翼云云储存
This commit is contained in:
parent
362b205411
commit
96e872306c
@ -437,13 +437,13 @@ class SystemStorageServices extends BaseServices
|
||||
$domainName = 'https://' . $name . ($appid ? '-' . $appid : '') . '.cos.' . $reagion . '.myqcloud.com';
|
||||
break;
|
||||
case 5:// cos 京东云
|
||||
$domainName = 'https://' . $name . '.cos.' . $reagion . '.jdcloud-oss.com';
|
||||
$domainName = 'https://' . $name . '.s3.' . $reagion . '.jdcloud-oss.com';
|
||||
break;
|
||||
case 6:// cos 华为云
|
||||
$domainName = 'https://' . $name . '.cos.' . $reagion . '.myhuaweicloud.com';
|
||||
$domainName = 'https://' . $name . '.obs.' . $reagion . '.myhuaweicloud.com';
|
||||
break;
|
||||
case 7:// cos 天翼云
|
||||
$domainName = 'https://' . $name . '.cos.' . $reagion . '.ctyun.cn';
|
||||
$domainName = 'https://' . $name . '.obs.' . $reagion . '.ctyun.cn';
|
||||
break;
|
||||
}
|
||||
return $domainName;
|
||||
|
||||
@ -422,7 +422,7 @@ class Client extends BaseClient
|
||||
if ($this->type == 'hw') {
|
||||
$url = '.myhuaweicloud.com'; // 华为
|
||||
} else {
|
||||
$url = $region . '.ctyun.cn'; // 天翼
|
||||
$url = '.ctyun.cn'; // 天翼
|
||||
}
|
||||
if ($bucket) {
|
||||
return $bucket . '.obs.' . $region . $url;
|
||||
|
||||
@ -361,10 +361,10 @@ class Tyoss extends BaseUpload
|
||||
{
|
||||
try {
|
||||
$this->app()->PutBucketCors($name, $region, [
|
||||
'AllowedHeaders' => ['*'],
|
||||
'AllowedMethods' => ['PUT', 'GET', 'POST', 'DELETE', 'HEAD'],
|
||||
'AllowedOrigins' => ['*'],
|
||||
'ExposeHeaders' => ['ETag', 'Content-Length', 'x-cos-request-id'],
|
||||
'AllowedHeader' => ['*'],
|
||||
'AllowedMethod' => ['PUT', 'GET', 'POST', 'DELETE', 'HEAD'],
|
||||
'AllowedOrigin' => ['*'],
|
||||
'ExposeHeader' => ['ETag', 'Content-Length', 'x-cos-request-id'],
|
||||
'MaxAgeSeconds' => 100
|
||||
]);
|
||||
return true;
|
||||
@ -372,7 +372,6 @@ class Tyoss extends BaseUpload
|
||||
return $this->setError($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function getTempKeys()
|
||||
{
|
||||
// TODO: Implement getTempKeys() method.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user