update vendor

v6
李光春 2 years ago
parent 306f3e80c4
commit 022a41a2da

@ -1,11 +1,9 @@
{
"name": "liguangchun/think-library",
"description": "ThinkPhp扩展包",
"name": "dtapps/think-library",
"description": "ThinkPhP扩展包",
"keywords": [
"dtapp",
"liguangchun",
"dtapps",
"think-library",
"thinkLibrary",
"think",
"thinkphp",
"library"
@ -16,7 +14,7 @@
"authors": [
{
"name": "Chaim",
"email": "gc@dtapp.net",
"email": "li.gc@icoud.com",
"homepage": "https://api.dtapp.net"
}
],
@ -40,7 +38,8 @@
"qcloud/cos-sdk-v5": "^2.0",
"qiniu/php-sdk": "^7.2",
"upyun/sdk": "^3.4",
"phpoffice/phpspreadsheet": "1.17.1"
"phpoffice/phpspreadsheet": "1.17.1",
"alibabacloud/dysmsapi-20170525": "^1.0"
},
"require-dev": {
"symfony/var-dumper": "^4.2"

@ -97,6 +97,7 @@ class OpenApiClient
$this->_credential = $config->credential;
}
$this->_endpoint = $config->endpoint;
$this->_endpointType = $config->endpointType;
$this->_protocol = $config->protocol;
$this->_regionId = $config->regionId;
$this->_userAgent = $config->userAgent;
@ -219,12 +220,13 @@ class OpenApiClient
$_lastRequest = $_request;
$_response = Tea::send($_request, $_runtime);
if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) {
$_res = Utils::readAsJSON($_response->body);
$err = Utils::assertAsMap($_res);
$_res = Utils::readAsJSON($_response->body);
$err = Utils::assertAsMap($_res);
$requestId = self::defaultAny(@$err['RequestId'], @$err['requestId']);
throw new TeaError([
'code' => '' . (string) (self::defaultAny(@$err['Code'], @$err['code'])) . '',
'message' => 'code: ' . (string) ($_response->statusCode) . ', ' . (string) (self::defaultAny(@$err['Message'], @$err['message'])) . ' request id: ' . (string) (self::defaultAny(@$err['RequestId'], @$err['requestId'])) . '',
'message' => 'code: ' . (string) ($_response->statusCode) . ', ' . (string) (self::defaultAny(@$err['Message'], @$err['message'])) . ' request id: ' . (string) ($requestId) . '',
'data' => $err,
]);
}
@ -386,12 +388,14 @@ class OpenApiClient
];
}
if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) {
$_res = Utils::readAsJSON($_response->body);
$err = Utils::assertAsMap($_res);
$_res = Utils::readAsJSON($_response->body);
$err = Utils::assertAsMap($_res);
$requestId = self::defaultAny(@$err['RequestId'], @$err['requestId']);
$requestId = self::defaultAny($requestId, @$err['requestid']);
throw new TeaError([
'code' => '' . (string) (self::defaultAny(@$err['Code'], @$err['code'])) . '',
'message' => 'code: ' . (string) ($_response->statusCode) . ', ' . (string) (self::defaultAny(@$err['Message'], @$err['message'])) . ' request id: ' . (string) (self::defaultAny(@$err['RequestId'], @$err['requestId'])) . '',
'message' => 'code: ' . (string) ($_response->statusCode) . ', ' . (string) (self::defaultAny(@$err['Message'], @$err['message'])) . ' request id: ' . (string) ($requestId) . '',
'data' => $err,
]);
}
@ -678,7 +682,7 @@ class OpenApiClient
$_request = new Request();
$_request->protocol = Utils::defaultString($this->_protocol, $params->protocol);
$_request->method = $params->method;
$_request->pathname = OpenApiUtilClient::getEncodePath($params->pathname);
$_request->pathname = $params->pathname;
$_request->query = $request->query;
// endpoint is setted in product client
$_request->headers = Tea::merge([

@ -1,3 +1,9 @@
2021-09-01 Version: 1.0.3
- Generated php 2017-05-25 for Dysmsapi.
2021-07-15 Version: 1.0.2
- Generated php 2017-05-25 for Dysmsapi.
2021-01-04 Version: 1.0.1
- AMP Version Change.

@ -12,7 +12,7 @@
"require": {
"php": ">5.5",
"alibabacloud/tea-utils": "^0.2.0",
"alibabacloud/darabonba-openapi": "^0.1.0",
"alibabacloud/darabonba-openapi": "^0.1.8",
"alibabacloud/endpoint-util": "^0.1.0"
},
"autoload": {

@ -5,16 +5,10 @@
namespace AlibabaCloud\SDK\Dysmsapi\V20170525;
use AlibabaCloud\Endpoint\Endpoint;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsSignRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsSignResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsTemplateRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddSmsTemplateResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateShortParamRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateShortParamResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\DeleteShortUrlRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\DeleteShortUrlResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\DeleteSmsSignRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\DeleteSmsSignResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\DeleteSmsTemplateRequest;
@ -25,14 +19,14 @@ use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ModifySmsTemplateRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ModifySmsTemplateResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QuerySendDetailsRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QuerySendDetailsResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QueryShortUrlRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QueryShortUrlResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QuerySmsSignRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QuerySmsSignResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QuerySmsTemplateRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QuerySmsTemplateResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendBatchSmsRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendBatchSmsResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendMessageToGlobeRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendMessageToGlobeResponse;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendSmsRequest;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendSmsResponse;
use AlibabaCloud\Tea\Utils\Utils;
@ -47,21 +41,10 @@ class Dysmsapi extends OpenApiClient
parent::__construct($config);
$this->_endpointRule = 'central';
$this->_endpointMap = [
'ap-northeast-1' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'ap-northeast-2-pop' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'ap-south-1' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'ap-southeast-1' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'ap-southeast-2' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'ap-southeast-3' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'ap-southeast-5' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'cn-beijing' => 'dysmsapi-proxy.cn-beijing.aliyuncs.com',
'eu-central-1' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'eu-west-1' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'eu-west-1-oxs' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'me-east-1' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'rus-west-1-pop' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'us-east-1' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'us-west-1' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'ap-southeast-1' => 'dysmsapi.ap-southeast-1.aliyuncs.com',
'ap-southeast-5' => 'dysmsapi-xman.ap-southeast-5.aliyuncs.com',
'cn-beijing' => 'dysmsapi-proxy.cn-beijing.aliyuncs.com',
'cn-hongkong' => 'dysmsapi-xman.cn-hongkong.aliyuncs.com',
];
$this->checkConfig($config);
$this->_endpoint = $this->getEndpoint('dysmsapi', $this->_regionId, $this->_endpointRule, $this->_network, $this->_suffix, $this->_endpointMap, $this->_endpoint);
@ -90,34 +73,6 @@ class Dysmsapi extends OpenApiClient
return Endpoint::getEndpointRules($productId, $regionId, $endpointRule, $network, $suffix);
}
/**
* @param AddShortUrlRequest $request
* @param RuntimeOptions $runtime
*
* @return AddShortUrlResponse
*/
public function addShortUrlWithOptions($request, $runtime)
{
Utils::validateModel($request);
$req = new OpenApiRequest([
'body' => Utils::toMap($request),
]);
return AddShortUrlResponse::fromMap($this->doRPCRequest('AddShortUrl', '2017-05-25', 'HTTPS', 'POST', 'AK', 'json', $req, $runtime));
}
/**
* @param AddShortUrlRequest $request
*
* @return AddShortUrlResponse
*/
public function addShortUrl($request)
{
$runtime = new RuntimeOptions([]);
return $this->addShortUrlWithOptions($request, $runtime);
}
/**
* @param AddSmsSignRequest $request
* @param RuntimeOptions $runtime
@ -174,62 +129,6 @@ class Dysmsapi extends OpenApiClient
return $this->addSmsTemplateWithOptions($request, $runtime);
}
/**
* @param CreateShortParamRequest $request
* @param RuntimeOptions $runtime
*
* @return CreateShortParamResponse
*/
public function createShortParamWithOptions($request, $runtime)
{
Utils::validateModel($request);
$req = new OpenApiRequest([
'body' => Utils::toMap($request),
]);
return CreateShortParamResponse::fromMap($this->doRPCRequest('CreateShortParam', '2017-05-25', 'HTTPS', 'POST', 'AK', 'json', $req, $runtime));
}
/**
* @param CreateShortParamRequest $request
*
* @return CreateShortParamResponse
*/
public function createShortParam($request)
{
$runtime = new RuntimeOptions([]);
return $this->createShortParamWithOptions($request, $runtime);
}
/**
* @param DeleteShortUrlRequest $request
* @param RuntimeOptions $runtime
*
* @return DeleteShortUrlResponse
*/
public function deleteShortUrlWithOptions($request, $runtime)
{
Utils::validateModel($request);
$req = new OpenApiRequest([
'body' => Utils::toMap($request),
]);
return DeleteShortUrlResponse::fromMap($this->doRPCRequest('DeleteShortUrl', '2017-05-25', 'HTTPS', 'POST', 'AK', 'json', $req, $runtime));
}
/**
* @param DeleteShortUrlRequest $request
*
* @return DeleteShortUrlResponse
*/
public function deleteShortUrl($request)
{
$runtime = new RuntimeOptions([]);
return $this->deleteShortUrlWithOptions($request, $runtime);
}
/**
* @param DeleteSmsSignRequest $request
* @param RuntimeOptions $runtime
@ -370,34 +269,6 @@ class Dysmsapi extends OpenApiClient
return $this->querySendDetailsWithOptions($request, $runtime);
}
/**
* @param QueryShortUrlRequest $request
* @param RuntimeOptions $runtime
*
* @return QueryShortUrlResponse
*/
public function queryShortUrlWithOptions($request, $runtime)
{
Utils::validateModel($request);
$req = new OpenApiRequest([
'body' => Utils::toMap($request),
]);
return QueryShortUrlResponse::fromMap($this->doRPCRequest('QueryShortUrl', '2017-05-25', 'HTTPS', 'POST', 'AK', 'json', $req, $runtime));
}
/**
* @param QueryShortUrlRequest $request
*
* @return QueryShortUrlResponse
*/
public function queryShortUrl($request)
{
$runtime = new RuntimeOptions([]);
return $this->queryShortUrlWithOptions($request, $runtime);
}
/**
* @param QuerySmsSignRequest $request
* @param RuntimeOptions $runtime
@ -482,6 +353,34 @@ class Dysmsapi extends OpenApiClient
return $this->sendBatchSmsWithOptions($request, $runtime);
}
/**
* @param SendMessageToGlobeRequest $request
* @param RuntimeOptions $runtime
*
* @return SendMessageToGlobeResponse
*/
public function sendMessageToGlobeWithOptions($request, $runtime)
{
Utils::validateModel($request);
$req = new OpenApiRequest([
'body' => Utils::toMap($request),
]);
return SendMessageToGlobeResponse::fromMap($this->doRPCRequest('SendMessageToGlobe', '2017-05-25', 'HTTPS', 'POST', 'AK', 'json', $req, $runtime));
}
/**
* @param SendMessageToGlobeRequest $request
*
* @return SendMessageToGlobeResponse
*/
public function sendMessageToGlobe($request)
{
$runtime = new RuntimeOptions([]);
return $this->sendMessageToGlobeWithOptions($request, $runtime);
}
/**
* @param SendSmsRequest $request
* @param RuntimeOptions $runtime

@ -1,119 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class AddShortUrlRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $sourceUrl;
/**
* @var string
*/
public $shortUrlName;
/**
* @var string
*/
public $effectiveDays;
/**
* @var string
*/
public $prodCode;
protected $_name = [
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'sourceUrl' => 'SourceUrl',
'shortUrlName' => 'ShortUrlName',
'effectiveDays' => 'EffectiveDays',
'prodCode' => 'ProdCode',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->sourceUrl) {
$res['SourceUrl'] = $this->sourceUrl;
}
if (null !== $this->shortUrlName) {
$res['ShortUrlName'] = $this->shortUrlName;
}
if (null !== $this->effectiveDays) {
$res['EffectiveDays'] = $this->effectiveDays;
}
if (null !== $this->prodCode) {
$res['ProdCode'] = $this->prodCode;
}
return $res;
}
/**
* @param array $map
*
* @return AddShortUrlRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['SourceUrl'])) {
$model->sourceUrl = $map['SourceUrl'];
}
if (isset($map['ShortUrlName'])) {
$model->shortUrlName = $map['ShortUrlName'];
}
if (isset($map['EffectiveDays'])) {
$model->effectiveDays = $map['EffectiveDays'];
}
if (isset($map['ProdCode'])) {
$model->prodCode = $map['ProdCode'];
}
return $model;
}
}

@ -1,61 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class AddShortUrlResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var AddShortUrlResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'body' => 'body',
];
public function validate()
{
Model::validateRequired('headers', $this->headers, true);
Model::validateRequired('body', $this->body, true);
}
public function toMap()
{
$res = [];
if (null !== $this->headers) {
$res['headers'] = $this->headers;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
}
return $res;
}
/**
* @param array $map
*
* @return AddShortUrlResponse
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
$model->headers = $map['headers'];
}
if (isset($map['body'])) {
$model->body = AddShortUrlResponseBody::fromMap($map['body']);
}
return $model;
}
}

@ -1,84 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody\data;
use AlibabaCloud\Tea\Model;
class AddShortUrlResponseBody extends Model
{
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $code;
protected $_name = [
'message' => 'Message',
'requestId' => 'RequestId',
'data' => 'Data',
'code' => 'Code',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
return $res;
}
/**
* @param array $map
*
* @return AddShortUrlResponseBody
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
return $model;
}
}

@ -1,71 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\AddShortUrlResponseBody;
use AlibabaCloud\Tea\Model;
class data extends Model
{
/**
* @var string
*/
public $sourceUrl;
/**
* @var string
*/
public $expireDate;
/**
* @var string
*/
public $shortUrl;
protected $_name = [
'sourceUrl' => 'SourceUrl',
'expireDate' => 'ExpireDate',
'shortUrl' => 'ShortUrl',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->sourceUrl) {
$res['SourceUrl'] = $this->sourceUrl;
}
if (null !== $this->expireDate) {
$res['ExpireDate'] = $this->expireDate;
}
if (null !== $this->shortUrl) {
$res['ShortUrl'] = $this->shortUrl;
}
return $res;
}
/**
* @param array $map
*
* @return data
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['SourceUrl'])) {
$model->sourceUrl = $map['SourceUrl'];
}
if (isset($map['ExpireDate'])) {
$model->expireDate = $map['ExpireDate'];
}
if (isset($map['ShortUrl'])) {
$model->shortUrl = $map['ShortUrl'];
}
return $model;
}
}

@ -11,26 +11,26 @@ class AddSmsSignResponseBody extends Model
/**
* @var string
*/
public $message;
public $code;
/**
* @var string
*/
public $requestId;
public $message;
/**
* @var string
*/
public $code;
public $requestId;
/**
* @var string
*/
public $signName;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
'signName' => 'SignName',
];
@ -41,15 +41,15 @@ class AddSmsSignResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->signName) {
$res['SignName'] = $this->signName;
}
@ -65,15 +65,15 @@ class AddSmsSignResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['SignName'])) {
$model->signName = $map['SignName'];
}

@ -11,7 +11,7 @@ class AddSmsTemplateResponseBody extends Model
/**
* @var string
*/
public $templateCode;
public $code;
/**
* @var string
@ -26,12 +26,12 @@ class AddSmsTemplateResponseBody extends Model
/**
* @var string
*/
public $code;
public $templateCode;
protected $_name = [
'templateCode' => 'TemplateCode',
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
'templateCode' => 'TemplateCode',
];
public function validate()
@ -41,8 +41,8 @@ class AddSmsTemplateResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
@ -50,8 +50,8 @@ class AddSmsTemplateResponseBody extends Model
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
@ -65,8 +65,8 @@ class AddSmsTemplateResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
@ -74,8 +74,8 @@ class AddSmsTemplateResponseBody extends Model
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;

@ -1,84 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateShortParamResponseBody\data;
use AlibabaCloud\Tea\Model;
class CreateShortParamResponseBody extends Model
{
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $code;
protected $_name = [
'message' => 'Message',
'requestId' => 'RequestId',
'data' => 'Data',
'code' => 'Code',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
return $res;
}
/**
* @param array $map
*
* @return CreateShortParamResponseBody
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
return $model;
}
}

@ -1,71 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\CreateShortParamResponseBody;
use AlibabaCloud\Tea\Model;
class data extends Model
{
/**
* @var string
*/
public $phoneNumbers;
/**
* @var string
*/
public $shortParam;
/**
* @var string
*/
public $paramDetail;
protected $_name = [
'phoneNumbers' => 'PhoneNumbers',
'shortParam' => 'ShortParam',
'paramDetail' => 'ParamDetail',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->phoneNumbers) {
$res['PhoneNumbers'] = $this->phoneNumbers;
}
if (null !== $this->shortParam) {
$res['ShortParam'] = $this->shortParam;
}
if (null !== $this->paramDetail) {
$res['ParamDetail'] = $this->paramDetail;
}
return $res;
}
/**
* @param array $map
*
* @return data
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['PhoneNumbers'])) {
$model->phoneNumbers = $map['PhoneNumbers'];
}
if (isset($map['ShortParam'])) {
$model->shortParam = $map['ShortParam'];
}
if (isset($map['ParamDetail'])) {
$model->paramDetail = $map['ParamDetail'];
}
return $model;
}
}

@ -1,95 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class DeleteShortUrlRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $sourceUrl;
/**
* @var string
*/
public $prodCode;
protected $_name = [
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'sourceUrl' => 'SourceUrl',
'prodCode' => 'ProdCode',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->sourceUrl) {
$res['SourceUrl'] = $this->sourceUrl;
}
if (null !== $this->prodCode) {
$res['ProdCode'] = $this->prodCode;
}
return $res;
}
/**
* @param array $map
*
* @return DeleteShortUrlRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['SourceUrl'])) {
$model->sourceUrl = $map['SourceUrl'];
}
if (isset($map['ProdCode'])) {
$model->prodCode = $map['ProdCode'];
}
return $model;
}
}

@ -1,61 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class DeleteShortUrlResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var DeleteShortUrlResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'body' => 'body',
];
public function validate()
{
Model::validateRequired('headers', $this->headers, true);
Model::validateRequired('body', $this->body, true);
}
public function toMap()
{
$res = [];
if (null !== $this->headers) {
$res['headers'] = $this->headers;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
}
return $res;
}
/**
* @param array $map
*
* @return DeleteShortUrlResponse
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
$model->headers = $map['headers'];
}
if (isset($map['body'])) {
$model->body = DeleteShortUrlResponseBody::fromMap($map['body']);
}
return $model;
}
}

@ -1,71 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class DeleteShortUrlResponseBody extends Model
{
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $code;
protected $_name = [
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
return $res;
}
/**
* @param array $map
*
* @return DeleteShortUrlResponseBody
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
return $model;
}
}

@ -11,26 +11,26 @@ class DeleteSmsSignResponseBody extends Model
/**
* @var string
*/
public $message;
public $code;
/**
* @var string
*/
public $requestId;
public $message;
/**
* @var string
*/
public $code;
public $requestId;
/**
* @var string
*/
public $signName;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
'signName' => 'SignName',
];
@ -41,15 +41,15 @@ class DeleteSmsSignResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->signName) {
$res['SignName'] = $this->signName;
}
@ -65,15 +65,15 @@ class DeleteSmsSignResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['SignName'])) {
$model->signName = $map['SignName'];
}

@ -11,7 +11,7 @@ class DeleteSmsTemplateResponseBody extends Model
/**
* @var string
*/
public $templateCode;
public $code;
/**
* @var string
@ -26,12 +26,12 @@ class DeleteSmsTemplateResponseBody extends Model
/**
* @var string
*/
public $code;
public $templateCode;
protected $_name = [
'templateCode' => 'TemplateCode',
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
'templateCode' => 'TemplateCode',
];
public function validate()
@ -41,8 +41,8 @@ class DeleteSmsTemplateResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
@ -50,8 +50,8 @@ class DeleteSmsTemplateResponseBody extends Model
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
@ -65,8 +65,8 @@ class DeleteSmsTemplateResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
@ -74,8 +74,8 @@ class DeleteSmsTemplateResponseBody extends Model
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;

@ -11,26 +11,26 @@ class ModifySmsSignResponseBody extends Model
/**
* @var string
*/
public $message;
public $code;
/**
* @var string
*/
public $requestId;
public $message;
/**
* @var string
*/
public $code;
public $requestId;
/**
* @var string
*/
public $signName;
protected $_name = [
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
'signName' => 'SignName',
];
@ -41,15 +41,15 @@ class ModifySmsSignResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->signName) {
$res['SignName'] = $this->signName;
}
@ -65,15 +65,15 @@ class ModifySmsSignResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['SignName'])) {
$model->signName = $map['SignName'];
}

@ -11,7 +11,7 @@ class ModifySmsTemplateResponseBody extends Model
/**
* @var string
*/
public $templateCode;
public $code;
/**
* @var string
@ -26,12 +26,12 @@ class ModifySmsTemplateResponseBody extends Model
/**
* @var string
*/
public $code;
public $templateCode;
protected $_name = [
'templateCode' => 'TemplateCode',
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
'templateCode' => 'TemplateCode',
];
public function validate()
@ -41,8 +41,8 @@ class ModifySmsTemplateResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
@ -50,8 +50,8 @@ class ModifySmsTemplateResponseBody extends Model
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
return $res;
@ -65,8 +65,8 @@ class ModifySmsTemplateResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
@ -74,8 +74,8 @@ class ModifySmsTemplateResponseBody extends Model
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
return $model;

@ -12,7 +12,7 @@ class QuerySendDetailsResponseBody extends Model
/**
* @var string
*/
public $totalCount;
public $code;
/**
* @var string
@ -27,17 +27,17 @@ class QuerySendDetailsResponseBody extends Model
/**
* @var string
*/
public $code;
public $totalCount;
/**
* @var smsSendDetailDTOs
*/
public $smsSendDetailDTOs;
protected $_name = [
'totalCount' => 'TotalCount',
'code' => 'Code',
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
'totalCount' => 'TotalCount',
'smsSendDetailDTOs' => 'SmsSendDetailDTOs',
];
@ -48,8 +48,8 @@ class QuerySendDetailsResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->totalCount) {
$res['TotalCount'] = $this->totalCount;
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
@ -57,8 +57,8 @@ class QuerySendDetailsResponseBody extends Model
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
if (null !== $this->totalCount) {
$res['TotalCount'] = $this->totalCount;
}
if (null !== $this->smsSendDetailDTOs) {
$res['SmsSendDetailDTOs'] = null !== $this->smsSendDetailDTOs ? $this->smsSendDetailDTOs->toMap() : null;
@ -75,8 +75,8 @@ class QuerySendDetailsResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['TotalCount'])) {
$model->totalCount = $map['TotalCount'];
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
@ -84,8 +84,8 @@ class QuerySendDetailsResponseBody extends Model
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
if (isset($map['TotalCount'])) {
$model->totalCount = $map['TotalCount'];
}
if (isset($map['SmsSendDetailDTOs'])) {
$model->smsSendDetailDTOs = smsSendDetailDTOs::fromMap($map['SmsSendDetailDTOs']);

@ -1,95 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class QueryShortUrlRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $resourceOwnerAccount;
/**
* @var int
*/
public $resourceOwnerId;
/**
* @var string
*/
public $prodCode;
/**
* @var string
*/
public $shortUrl;
protected $_name = [
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'prodCode' => 'ProdCode',
'shortUrl' => 'ShortUrl',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->ownerId) {
$res['OwnerId'] = $this->ownerId;
}
if (null !== $this->resourceOwnerAccount) {
$res['ResourceOwnerAccount'] = $this->resourceOwnerAccount;
}
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->prodCode) {
$res['ProdCode'] = $this->prodCode;
}
if (null !== $this->shortUrl) {
$res['ShortUrl'] = $this->shortUrl;
}
return $res;
}
/**
* @param array $map
*
* @return QueryShortUrlRequest
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['OwnerId'])) {
$model->ownerId = $map['OwnerId'];
}
if (isset($map['ResourceOwnerAccount'])) {
$model->resourceOwnerAccount = $map['ResourceOwnerAccount'];
}
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['ProdCode'])) {
$model->prodCode = $map['ProdCode'];
}
if (isset($map['ShortUrl'])) {
$model->shortUrl = $map['ShortUrl'];
}
return $model;
}
}

@ -1,61 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class QueryShortUrlResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var QueryShortUrlResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'body' => 'body',
];
public function validate()
{
Model::validateRequired('headers', $this->headers, true);
Model::validateRequired('body', $this->body, true);
}
public function toMap()
{
$res = [];
if (null !== $this->headers) {
$res['headers'] = $this->headers;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
}
return $res;
}
/**
* @param array $map
*
* @return QueryShortUrlResponse
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
$model->headers = $map['headers'];
}
if (isset($map['body'])) {
$model->body = QueryShortUrlResponseBody::fromMap($map['body']);
}
return $model;
}
}

@ -1,84 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QueryShortUrlResponseBody\data;
use AlibabaCloud\Tea\Model;
class QueryShortUrlResponseBody extends Model
{
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $requestId;
/**
* @var data
*/
public $data;
/**
* @var string
*/
public $code;
protected $_name = [
'message' => 'Message',
'requestId' => 'RequestId',
'data' => 'Data',
'code' => 'Code',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->data) {
$res['Data'] = null !== $this->data ? $this->data->toMap() : null;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
return $res;
}
/**
* @param array $map
*
* @return QueryShortUrlResponseBody
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Data'])) {
$model->data = data::fromMap($map['Data']);
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
return $model;
}
}

@ -1,131 +0,0 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\QueryShortUrlResponseBody;
use AlibabaCloud\Tea\Model;
class data extends Model
{
/**
* @var string
*/
public $uniqueVisitorCount;
/**
* @var string
*/
public $sourceUrl;
/**
* @var string
*/
public $shortUrlStatus;
/**
* @var string
*/
public $pageViewCount;
/**
* @var string
*/
public $expireDate;
/**
* @var string
*/
public $shortUrlName;
/**
* @var string
*/
public $createDate;
/**
* @var string
*/
public $shortUrl;
protected $_name = [
'uniqueVisitorCount' => 'UniqueVisitorCount',
'sourceUrl' => 'SourceUrl',
'shortUrlStatus' => 'ShortUrlStatus',
'pageViewCount' => 'PageViewCount',
'expireDate' => 'ExpireDate',
'shortUrlName' => 'ShortUrlName',
'createDate' => 'CreateDate',
'shortUrl' => 'ShortUrl',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->uniqueVisitorCount) {
$res['UniqueVisitorCount'] = $this->uniqueVisitorCount;
}
if (null !== $this->sourceUrl) {
$res['SourceUrl'] = $this->sourceUrl;
}
if (null !== $this->shortUrlStatus) {
$res['ShortUrlStatus'] = $this->shortUrlStatus;
}
if (null !== $this->pageViewCount) {
$res['PageViewCount'] = $this->pageViewCount;
}
if (null !== $this->expireDate) {
$res['ExpireDate'] = $this->expireDate;
}
if (null !== $this->shortUrlName) {
$res['ShortUrlName'] = $this->shortUrlName;
}
if (null !== $this->createDate) {
$res['CreateDate'] = $this->createDate;
}
if (null !== $this->shortUrl) {
$res['ShortUrl'] = $this->shortUrl;
}
return $res;
}
/**
* @param array $map
*
* @return data
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['UniqueVisitorCount'])) {
$model->uniqueVisitorCount = $map['UniqueVisitorCount'];
}
if (isset($map['SourceUrl'])) {
$model->sourceUrl = $map['SourceUrl'];
}
if (isset($map['ShortUrlStatus'])) {
$model->shortUrlStatus = $map['ShortUrlStatus'];
}
if (isset($map['PageViewCount'])) {
$model->pageViewCount = $map['PageViewCount'];
}
if (isset($map['ExpireDate'])) {
$model->expireDate = $map['ExpireDate'];
}
if (isset($map['ShortUrlName'])) {
$model->shortUrlName = $map['ShortUrlName'];
}
if (isset($map['CreateDate'])) {
$model->createDate = $map['CreateDate'];
}
if (isset($map['ShortUrl'])) {
$model->shortUrl = $map['ShortUrl'];
}
return $model;
}
}

@ -13,11 +13,6 @@ class QuerySmsSignResponseBody extends Model
*/
public $requestId;
/**
* @var string
*/
public $message;
/**
* @var int
*/
@ -28,6 +23,11 @@ class QuerySmsSignResponseBody extends Model
*/
public $code;
/**
* @var string
*/
public $message;
/**
* @var string
*/
@ -44,9 +44,9 @@ class QuerySmsSignResponseBody extends Model
public $signName;
protected $_name = [
'requestId' => 'RequestId',
'message' => 'Message',
'signStatus' => 'SignStatus',
'code' => 'Code',
'message' => 'Message',
'createDate' => 'CreateDate',
'reason' => 'Reason',
'signName' => 'SignName',
@ -62,15 +62,15 @@ class QuerySmsSignResponseBody extends Model
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->signStatus) {
$res['SignStatus'] = $this->signStatus;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->createDate) {
$res['CreateDate'] = $this->createDate;
}
@ -95,15 +95,15 @@ class QuerySmsSignResponseBody extends Model
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['SignStatus'])) {
$model->signStatus = $map['SignStatus'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['CreateDate'])) {
$model->createDate = $map['CreateDate'];
}

@ -11,7 +11,7 @@ class QuerySmsTemplateResponseBody extends Model
/**
* @var string
*/
public $templateCode;
public $templateContent;
/**
* @var string
@ -21,17 +21,17 @@ class QuerySmsTemplateResponseBody extends Model
/**
* @var string
*/
public $message;
public $templateCode;
/**
* @var string
* @var int
*/
public $templateContent;
public $templateStatus;
/**
* @var string
*/
public $templateName;
public $code;
/**
* @var int
@ -41,33 +41,33 @@ class QuerySmsTemplateResponseBody extends Model
/**
* @var string
*/
public $code;
public $message;
/**
* @var string
*/
public $createDate;
public $templateName;
/**
* @var string
*/
public $reason;
public $createDate;
/**
* @var int
* @var string
*/
public $templateStatus;
public $reason;
protected $_name = [
'templateCode' => 'TemplateCode',
'templateContent' => 'TemplateContent',
'requestId' => 'RequestId',
'templateCode' => 'TemplateCode',
'templateStatus' => 'TemplateStatus',
'code' => 'Code',
'templateType' => 'TemplateType',
'message' => 'Message',
'templateContent' => 'TemplateContent',
'templateName' => 'TemplateName',
'templateType' => 'TemplateType',
'code' => 'Code',
'createDate' => 'CreateDate',
'reason' => 'Reason',
'templateStatus' => 'TemplateStatus',
];
public function validate()
@ -77,26 +77,29 @@ class QuerySmsTemplateResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
if (null !== $this->templateContent) {
$res['TemplateContent'] = $this->templateContent;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
if (null !== $this->templateCode) {
$res['TemplateCode'] = $this->templateCode;
}
if (null !== $this->templateContent) {
$res['TemplateContent'] = $this->templateContent;
if (null !== $this->templateStatus) {
$res['TemplateStatus'] = $this->templateStatus;
}
if (null !== $this->templateName) {
$res['TemplateName'] = $this->templateName;
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->templateType) {
$res['TemplateType'] = $this->templateType;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->templateName) {
$res['TemplateName'] = $this->templateName;
}
if (null !== $this->createDate) {
$res['CreateDate'] = $this->createDate;
@ -104,9 +107,6 @@ class QuerySmsTemplateResponseBody extends Model
if (null !== $this->reason) {
$res['Reason'] = $this->reason;
}
if (null !== $this->templateStatus) {
$res['TemplateStatus'] = $this->templateStatus;
}
return $res;
}
@ -119,26 +119,29 @@ class QuerySmsTemplateResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
if (isset($map['TemplateContent'])) {
$model->templateContent = $map['TemplateContent'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
if (isset($map['TemplateContent'])) {
$model->templateContent = $map['TemplateContent'];
if (isset($map['TemplateStatus'])) {
$model->templateStatus = $map['TemplateStatus'];
}
if (isset($map['TemplateName'])) {
$model->templateName = $map['TemplateName'];
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['TemplateType'])) {
$model->templateType = $map['TemplateType'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['TemplateName'])) {
$model->templateName = $map['TemplateName'];
}
if (isset($map['CreateDate'])) {
$model->createDate = $map['CreateDate'];
@ -146,9 +149,6 @@ class QuerySmsTemplateResponseBody extends Model
if (isset($map['Reason'])) {
$model->reason = $map['Reason'];
}
if (isset($map['TemplateStatus'])) {
$model->templateStatus = $map['TemplateStatus'];
}
return $model;
}

@ -54,7 +54,7 @@ class SendBatchSmsRequest extends Model
'phoneNumberJson' => 'PhoneNumberJson',
'signNameJson' => 'SignNameJson',
'templateCode' => 'TemplateCode',
'templateParamJson' => 'templateParamJson',
'templateParamJson' => 'TemplateParamJson',
'smsUpExtendCodeJson' => 'SmsUpExtendCodeJson',
];
@ -84,7 +84,7 @@ class SendBatchSmsRequest extends Model
$res['TemplateCode'] = $this->templateCode;
}
if (null !== $this->templateParamJson) {
$res['templateParamJson'] = $this->templateParamJson;
$res['TemplateParamJson'] = $this->templateParamJson;
}
if (null !== $this->smsUpExtendCodeJson) {
$res['SmsUpExtendCodeJson'] = $this->smsUpExtendCodeJson;
@ -119,8 +119,8 @@ class SendBatchSmsRequest extends Model
if (isset($map['TemplateCode'])) {
$model->templateCode = $map['TemplateCode'];
}
if (isset($map['templateParamJson'])) {
$model->templateParamJson = $map['templateParamJson'];
if (isset($map['TemplateParamJson'])) {
$model->templateParamJson = $map['TemplateParamJson'];
}
if (isset($map['SmsUpExtendCodeJson'])) {
$model->smsUpExtendCodeJson = $map['SmsUpExtendCodeJson'];

@ -11,27 +11,27 @@ class SendBatchSmsResponseBody extends Model
/**
* @var string
*/
public $message;
public $code;
/**
* @var string
*/
public $requestId;
public $message;
/**
* @var string
*/
public $code;
public $bizId;
/**
* @var string
*/
public $bizId;
public $requestId;
protected $_name = [
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
'message' => 'Message',
'bizId' => 'BizId',
'requestId' => 'RequestId',
];
public function validate()
@ -41,18 +41,18 @@ class SendBatchSmsResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->bizId) {
$res['BizId'] = $this->bizId;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
return $res;
}
@ -65,18 +65,18 @@ class SendBatchSmsResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['BizId'])) {
$model->bizId = $map['BizId'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
return $model;
}

@ -6,7 +6,7 @@ namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class CreateShortParamRequest extends Model
class SendMessageToGlobeRequest extends Model
{
/**
* @var int
@ -26,18 +26,30 @@ class CreateShortParamRequest extends Model
/**
* @var string
*/
public $phoneNumbers;
public $to;
/**
* @var string
*/
public $prodCode;
public $from;
/**
* @var string
*/
public $message;
/**
* @var string
*/
public $type;
protected $_name = [
'ownerId' => 'OwnerId',
'resourceOwnerAccount' => 'ResourceOwnerAccount',
'resourceOwnerId' => 'ResourceOwnerId',
'phoneNumbers' => 'PhoneNumbers',
'prodCode' => 'ProdCode',
'to' => 'To',
'from' => 'From',
'message' => 'Message',
'type' => 'Type',
];
public function validate()
@ -56,11 +68,17 @@ class CreateShortParamRequest extends Model
if (null !== $this->resourceOwnerId) {
$res['ResourceOwnerId'] = $this->resourceOwnerId;
}
if (null !== $this->phoneNumbers) {
$res['PhoneNumbers'] = $this->phoneNumbers;
if (null !== $this->to) {
$res['To'] = $this->to;
}
if (null !== $this->from) {
$res['From'] = $this->from;
}
if (null !== $this->prodCode) {
$res['ProdCode'] = $this->prodCode;
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->type) {
$res['Type'] = $this->type;
}
return $res;
@ -69,7 +87,7 @@ class CreateShortParamRequest extends Model
/**
* @param array $map
*
* @return CreateShortParamRequest
* @return SendMessageToGlobeRequest
*/
public static function fromMap($map = [])
{
@ -83,11 +101,17 @@ class CreateShortParamRequest extends Model
if (isset($map['ResourceOwnerId'])) {
$model->resourceOwnerId = $map['ResourceOwnerId'];
}
if (isset($map['PhoneNumbers'])) {
$model->phoneNumbers = $map['PhoneNumbers'];
if (isset($map['To'])) {
$model->to = $map['To'];
}
if (isset($map['From'])) {
$model->from = $map['From'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['ProdCode'])) {
$model->prodCode = $map['ProdCode'];
if (isset($map['Type'])) {
$model->type = $map['Type'];
}
return $model;

@ -6,7 +6,7 @@ namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\Tea\Model;
class CreateShortParamResponse extends Model
class SendMessageToGlobeResponse extends Model
{
/**
* @var string[]
@ -14,7 +14,7 @@ class CreateShortParamResponse extends Model
public $headers;
/**
* @var CreateShortParamResponseBody
* @var SendMessageToGlobeResponseBody
*/
public $body;
protected $_name = [
@ -44,7 +44,7 @@ class CreateShortParamResponse extends Model
/**
* @param array $map
*
* @return CreateShortParamResponse
* @return SendMessageToGlobeResponse
*/
public static function fromMap($map = [])
{
@ -53,7 +53,7 @@ class CreateShortParamResponse extends Model
$model->headers = $map['headers'];
}
if (isset($map['body'])) {
$model->body = CreateShortParamResponseBody::fromMap($map['body']);
$model->body = SendMessageToGlobeResponseBody::fromMap($map['body']);
}
return $model;

@ -0,0 +1,120 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendMessageToGlobeResponseBody\numberDetail;
use AlibabaCloud\Tea\Model;
class SendMessageToGlobeResponseBody extends Model
{
/**
* @var string
*/
public $from;
/**
* @var string
*/
public $messageId;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $segments;
/**
* @var string
*/
public $code;
/**
* @var string
*/
public $to;
/**
* @var numberDetail
*/
public $numberDetail;
protected $_name = [
'from' => 'From',
'messageId' => 'MessageId',
'requestId' => 'RequestId',
'segments' => 'Segments',
'code' => 'Code',
'to' => 'To',
'numberDetail' => 'NumberDetail',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->from) {
$res['From'] = $this->from;
}
if (null !== $this->messageId) {
$res['MessageId'] = $this->messageId;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->segments) {
$res['Segments'] = $this->segments;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->to) {
$res['To'] = $this->to;
}
if (null !== $this->numberDetail) {
$res['NumberDetail'] = null !== $this->numberDetail ? $this->numberDetail->toMap() : null;
}
return $res;
}
/**
* @param array $map
*
* @return SendMessageToGlobeResponseBody
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['From'])) {
$model->from = $map['From'];
}
if (isset($map['MessageId'])) {
$model->messageId = $map['MessageId'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Segments'])) {
$model->segments = $map['Segments'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['To'])) {
$model->to = $map['To'];
}
if (isset($map['NumberDetail'])) {
$model->numberDetail = numberDetail::fromMap($map['NumberDetail']);
}
return $model;
}
}

@ -0,0 +1,71 @@
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models\SendMessageToGlobeResponseBody;
use AlibabaCloud\Tea\Model;
class numberDetail extends Model
{
/**
* @var string
*/
public $country;
/**
* @var string
*/
public $carrier;
/**
* @var string
*/
public $region;
protected $_name = [
'country' => 'Country',
'carrier' => 'Carrier',
'region' => 'Region',
];
public function validate()
{
}
public function toMap()
{
$res = [];
if (null !== $this->country) {
$res['Country'] = $this->country;
}
if (null !== $this->carrier) {
$res['Carrier'] = $this->carrier;
}
if (null !== $this->region) {
$res['Region'] = $this->region;
}
return $res;
}
/**
* @param array $map
*
* @return numberDetail
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Country'])) {
$model->country = $map['Country'];
}
if (isset($map['Carrier'])) {
$model->carrier = $map['Carrier'];
}
if (isset($map['Region'])) {
$model->region = $map['Region'];
}
return $model;
}
}

@ -11,27 +11,27 @@ class SendSmsResponseBody extends Model
/**
* @var string
*/
public $message;
public $code;
/**
* @var string
*/
public $requestId;
public $message;
/**
* @var string
*/
public $code;
public $bizId;
/**
* @var string
*/
public $bizId;
public $requestId;
protected $_name = [
'message' => 'Message',
'requestId' => 'RequestId',
'code' => 'Code',
'message' => 'Message',
'bizId' => 'BizId',
'requestId' => 'RequestId',
];
public function validate()
@ -41,18 +41,18 @@ class SendSmsResponseBody extends Model
public function toMap()
{
$res = [];
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
if (null !== $this->code) {
$res['Code'] = $this->code;
}
if (null !== $this->message) {
$res['Message'] = $this->message;
}
if (null !== $this->bizId) {
$res['BizId'] = $this->bizId;
}
if (null !== $this->requestId) {
$res['RequestId'] = $this->requestId;
}
return $res;
}
@ -65,18 +65,18 @@ class SendSmsResponseBody extends Model
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
if (isset($map['Code'])) {
$model->code = $map['Code'];
}
if (isset($map['Message'])) {
$model->message = $map['Message'];
}
if (isset($map['BizId'])) {
$model->bizId = $map['BizId'];
}
if (isset($map['RequestId'])) {
$model->requestId = $map['RequestId'];
}
return $model;
}

@ -296,9 +296,9 @@ class OpenApiUtilClient
public static function getAuthorization($request, $signatureAlgorithm, $payload, $accesskey, $accessKeySecret)
{
$canonicalURI = $request->pathname ? $request->pathname : '/';
$query = $request->query ?: [];
$method = strtoupper($request->method);
$canonicalQueryString = self::getCanonicalQueryString($request->query);
$canonicalQueryString = self::getCanonicalQueryString($query);
$signHeaders = [];
foreach ($request->headers as $k => $v) {
$k = strtolower($k);
@ -370,6 +370,18 @@ class OpenApiUtilClient
return implode('/', $tmp);
}
/**
* Get encoded param.
*
* @param string $param the raw param
*
* @return string encoded param
*/
public static function getEncodeParam($param)
{
return rawurlencode($param);
}
private static function getRpcStrToSign($method, $query)
{
ksort($query);

@ -1,5 +1,8 @@
# ChangeLog - Aliyun OSS SDK for PHP
## v2.4.3 / 2021-08-25
* Fixed: integer overflow in PHP5.x.
## v2.4.2 / 2021-06-04
* Compatible with PHP8.
* Fixed: compatible with PHP5.4.

@ -83,5 +83,5 @@ function printImage($func, $imageFile)
Common::println("$func, image width: " . $array[0]);
Common::println("$func, image height: " . $array[1]);
Common::println("$func, image type: " . ($array[2] === 2 ? 'jpg' : 'png'));
Common::println("$func, image size: " . ceil(filesize($imageFile)));
Common::println("$func, image size: " . ceil(sprintf('%u',filesize($imageFile))));
}

@ -85,7 +85,7 @@ function putObjectByRawApis($ossClient, $bucket)
*/
$partSize = 10 * 1024 * 1024;
$uploadFile = __FILE__;
$uploadFileSize = filesize($uploadFile);
$uploadFileSize = sprintf('%u',filesize($uploadFile));
$pieces = $ossClient->generateMultiuploadParts($uploadFileSize, $partSize);
$responseUploadPart = array();
$uploadPosition = 0;

@ -130,7 +130,7 @@ function getSignedUrlForPuttingObjectFromFile($ossClient, $bucket)
$request->set_method('PUT');
$request->add_header('Content-Type', 'txt');
$request->set_read_file($file);
$request->set_read_stream_size(filesize($file));
$request->set_read_stream_size(sprintf('%u',filesize($file)));
$request->send_request();
$res = new ResponseCore($request->get_response_header(),
$request->get_response_body(), $request->get_response_code());

@ -237,7 +237,7 @@ class OssUtil
*/
public static function generateFile($filename, $size)
{
if (file_exists($filename) && $size == filesize($filename)) {
if (file_exists($filename) && $size == sprintf('%u',filesize($filename))) {
echo $filename . " already exists, no need to create again. ";
return;
}
@ -284,7 +284,7 @@ BBB;
if (($to_pos - $from_pos) > self::OSS_MAX_PART_SIZE) {
return $content_md5;
}
$filesize = filesize($filename);
$filesize = sprintf('%u',filesize($filename));
if ($from_pos >= $filesize || $to_pos >= $filesize || $from_pos < 0 || $to_pos < 0) {
return $content_md5;
}

@ -23,7 +23,7 @@ class ObjectInfo
* @param string $lastModified
* @param string $eTag
* @param string $type
* @param int $size
* @param string $size
* @param string $storageClass
*/
public function __construct($key, $lastModified, $eTag, $type, $size, $storageClass)
@ -67,15 +67,26 @@ class ObjectInfo
{
return $this->type;
}
/**
* @return int
*/
public function getSize()
{
return $this->size;
}
/**
* php7 && 64bit can use it
* @return int
*/
public function getSize()
{
return (int)$this->size;
}
/**
* php5.x or 32bit must use it
* @return string
*/
public function getSizeStr()
{
return $this->size;
}
/**
* @return string
*/
@ -88,6 +99,6 @@ class ObjectInfo
private $lastModified = "";
private $eTag = "";
private $type = "";
private $size = 0;
private $size = "0";
private $storageClass = "";
}

@ -23,7 +23,7 @@ class ObjectVersionInfo
* @param string $lastModified
* @param string $eTag
* @param string $type
* @param int $size
* @param string $size
* @param string $storageClass
* @param string $isLatest
*/
@ -78,14 +78,25 @@ class ObjectVersionInfo
{
return $this->type;
}
/**
* @return int
*/
public function getSize()
{
return $this->size;
}
/**
* php7 && 64bit can use it
* @return int
*/
public function getSize()
{
return (int)$this->size;
}
/**
* php5.x or 32bit must use it
* @return string
*/
public function getSizeStr()
{
return $this->size;
}
/**
* @return string
@ -108,7 +119,7 @@ class ObjectVersionInfo
private $lastModified = "";
private $eTag = "";
private $type = "";
private $size = 0;
private $size = "0";
private $storageClass = "";
private $isLatest = "";
}

@ -14,7 +14,7 @@ class PartInfo
* @param int $partNumber
* @param string $lastModified
* @param string $eTag
* @param int $size
* @param string $size
*/
public function __construct($partNumber, $lastModified, $eTag, $size)
{
@ -49,15 +49,26 @@ class PartInfo
}
/**
* php7 && 64bit can use it
* @return int
*/
public function getSize()
{
return $this->size;
return (int)$this->size;
}
/**
* php5.x or 32bit must use it
* @return string
*/
public function getSizeStr()
{
return $this->size;
}
private $partNumber = 0;
private $lastModified = "";
private $eTag = "";
private $size = 0;
private $size = "0";
}

@ -1698,7 +1698,7 @@ class OssClient
throw new OssException($file . " file does not exist");
}
$options[self::OSS_FILE_UPLOAD] = $file;
$file_size = filesize($options[self::OSS_FILE_UPLOAD]);
$file_size = sprintf('%u',filesize($options[self::OSS_FILE_UPLOAD]));
$is_check_md5 = $this->isCheckMD5($options);
if ($is_check_md5) {
$content_md5 = base64_encode(md5_file($options[self::OSS_FILE_UPLOAD], true));
@ -1816,7 +1816,7 @@ class OssClient
throw new OssException($file . " file does not exist");
}
$options[self::OSS_FILE_UPLOAD] = $file;
$file_size = filesize($options[self::OSS_FILE_UPLOAD]);
$file_size = sprintf('%u',filesize($options[self::OSS_FILE_UPLOAD]));
$is_check_md5 = $this->isCheckMD5($options);
if ($is_check_md5) {
$content_md5 = base64_encode(md5_file($options[self::OSS_FILE_UPLOAD], true));
@ -2460,7 +2460,8 @@ class OssClient
if (isset($options[self::OSS_CONTENT_LENGTH])) {
$upload_file_size = (integer)$options[self::OSS_CONTENT_LENGTH];
} else {
$upload_file_size = filesize($uploadFile);
$upload_file_size = sprintf('%u',filesize($uploadFile));
if ($upload_file_size !== false) {
$upload_file_size -= $upload_position;
}
@ -3508,8 +3509,8 @@ class OssClient
);
// OssClient version information
const OSS_NAME = "aliyun-sdk-php";
const OSS_VERSION = "2.4.2";
const OSS_BUILD = "20210604";
const OSS_VERSION = "2.4.3";
const OSS_BUILD = "20210825";
const OSS_AUTHOR = "";
const OSS_OPTIONS_ORIGIN = 'Origin';
const OSS_OPTIONS_REQUEST_METHOD = 'Access-Control-Request-Method';

@ -56,7 +56,7 @@ class ListObjectVersionsResult extends Result
$lastModified = isset($content->LastModified) ? strval($content->LastModified) : "";
$eTag = isset($content->ETag) ? strval($content->ETag) : "";
$type = isset($content->Type) ? strval($content->Type) : "";
$size = isset($content->Size) ? intval($content->Size) : 0;
$size = isset($content->Size) ? strval($content->Size) : "0";
$storageClass = isset($content->StorageClass) ? strval($content->StorageClass) : "";
$isLatest = isset($content->IsLatest) ? strval($content->IsLatest) : "";
$retList[] = new ObjectVersionInfo($key, $versionId, $lastModified, $eTag, $type, $size, $storageClass, $isLatest);

@ -48,7 +48,7 @@ class ListObjectsResult extends Result
$lastModified = isset($content->LastModified) ? strval($content->LastModified) : "";
$eTag = isset($content->ETag) ? strval($content->ETag) : "";
$type = isset($content->Type) ? strval($content->Type) : "";
$size = isset($content->Size) ? intval($content->Size) : 0;
$size = isset($content->Size) ? strval($content->Size) : "0";
$storageClass = isset($content->StorageClass) ? strval($content->StorageClass) : "";
$retList[] = new ObjectInfo($key, $lastModified, $eTag, $type, $size, $storageClass);
}

@ -33,7 +33,7 @@ class ListPartsResult extends Result
$partNumber = isset($part->PartNumber) ? intval($part->PartNumber) : "";
$lastModified = isset($part->LastModified) ? strval($part->LastModified) : "";
$eTag = isset($part->ETag) ? strval($part->ETag) : "";
$size = isset($part->Size) ? intval($part->Size) : "";
$size = isset($part->Size) ? strval($part->Size) : "";
$partList[] = new PartInfo($partNumber, $lastModified, $eTag, $size);
}
}

@ -42,30 +42,75 @@ namespace Composer\Autoload;
*/
class ClassLoader
{
/** @var ?string */
private $vendorDir;
// PSR-4
/**
* @var array[]
* @psalm-var array<string, array<string, int>>
*/
private $prefixLengthsPsr4 = array();
/**
* @var array[]
* @psalm-var array<string, array<int, string>>
*/
private $prefixDirsPsr4 = array();
/**
* @var array[]
* @psalm-var array<string, string>
*/
private $fallbackDirsPsr4 = array();
// PSR-0
/**
* @var array[]
* @psalm-var array<string, array<string, string[]>>
*/
private $prefixesPsr0 = array();
/**
* @var array[]
* @psalm-var array<string, string>
*/
private $fallbackDirsPsr0 = array();
/** @var bool */
private $useIncludePath = false;
/**
* @var string[]
* @psalm-var array<string, string>
*/
private $classMap = array();
/** @var bool */
private $classMapAuthoritative = false;
/**
* @var bool[]
* @psalm-var array<string, bool>
*/
private $missingClasses = array();
/** @var ?string */
private $apcuPrefix;
/**
* @var self[]
*/
private static $registeredLoaders = array();
/**
* @param ?string $vendorDir
*/
public function __construct($vendorDir = null)
{
$this->vendorDir = $vendorDir;
}
/**
* @return string[]
*/
public function getPrefixes()
{
if (!empty($this->prefixesPsr0)) {
@ -75,28 +120,47 @@ class ClassLoader
return array();
}
/**
* @return array[]
* @psalm-return array<string, array<int, string>>
*/
public function getPrefixesPsr4()
{
return $this->prefixDirsPsr4;
}
/**
* @return array[]
* @psalm-return array<string, string>
*/
public function getFallbackDirs()
{
return $this->fallbackDirsPsr0;
}
/**
* @return array[]
* @psalm-return array<string, string>
*/
public function getFallbackDirsPsr4()
{
return $this->fallbackDirsPsr4;
}
/**
* @return string[] Array of classname => path
* @psalm-var array<string, string>
*/
public function getClassMap()
{
return $this->classMap;
}
/**
* @param array $classMap Class to filename map
* @param string[] $classMap Class to filename map
* @psalm-param array<string, string> $classMap
*
* @return void
*/
public function addClassMap(array $classMap)
{
@ -111,9 +175,11 @@ class ClassLoader
* Registers a set of PSR-0 directories for a given prefix, either
* appending or prepending to the ones previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 root directories
* @param bool $prepend Whether to prepend the directories
* @param string $prefix The prefix
* @param string[]|string $paths The PSR-0 root directories
* @param bool $prepend Whether to prepend the directories
*
* @return void
*/
public function add($prefix, $paths, $prepend = false)
{
@ -156,11 +222,13 @@ class ClassLoader
* Registers a set of PSR-4 directories for a given namespace, either
* appending or prepending to the ones previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
* @param bool $prepend Whether to prepend the directories
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param string[]|string $paths The PSR-4 base directories
* @param bool $prepend Whether to prepend the directories
*
* @throws \InvalidArgumentException
*
* @return void
*/
public function addPsr4($prefix, $paths, $prepend = false)
{
@ -204,8 +272,10 @@ class ClassLoader
* Registers a set of PSR-0 directories for a given prefix,
* replacing any others previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 base directories
* @param string $prefix The prefix
* @param string[]|string $paths The PSR-0 base directories
*
* @return void
*/
public function set($prefix, $paths)
{
@ -220,10 +290,12 @@ class ClassLoader
* Registers a set of PSR-4 directories for a given namespace,
* replacing any others previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param string[]|string $paths The PSR-4 base directories
*
* @throws \InvalidArgumentException
*
* @return void
*/
public function setPsr4($prefix, $paths)
{
@ -243,6 +315,8 @@ class ClassLoader
* Turns on searching the include path for class files.
*
* @param bool $useIncludePath
*
* @return void
*/
public function setUseIncludePath($useIncludePath)
{
@ -265,6 +339,8 @@ class ClassLoader
* that have not been registered with the class map.
*
* @param bool $classMapAuthoritative
*
* @return void
*/
public function setClassMapAuthoritative($classMapAuthoritative)
{
@ -285,6 +361,8 @@ class ClassLoader
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
*
* @param string|null $apcuPrefix
*
* @return void
*/
public function setApcuPrefix($apcuPrefix)
{
@ -305,6 +383,8 @@ class ClassLoader
* Registers this instance as an autoloader.
*
* @param bool $prepend Whether to prepend the autoloader or not
*
* @return void
*/
public function register($prepend = false)
{
@ -324,6 +404,8 @@ class ClassLoader
/**
* Unregisters this instance as an autoloader.
*
* @return void
*/
public function unregister()
{
@ -338,7 +420,7 @@ class ClassLoader
* Loads the given class or interface.
*
* @param string $class The name of the class
* @return bool|null True if loaded, null otherwise
* @return true|null True if loaded, null otherwise
*/
public function loadClass($class)
{
@ -347,6 +429,8 @@ class ClassLoader
return true;
}
return null;
}
/**
@ -401,6 +485,11 @@ class ClassLoader
return self::$registeredLoaders;
}
/**
* @param string $class
* @param string $ext
* @return string|false
*/
private function findFileWithExtension($class, $ext)
{
// PSR-4 lookup
@ -472,6 +561,10 @@ class ClassLoader
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*
* @param string $file
* @return void
* @private
*/
function includeFile($file)
{

File diff suppressed because it is too large Load Diff

@ -36,10 +36,6 @@ return array(
'AlibabaCloud\\Endpoint\\Endpoint' => $vendorDir . '/alibabacloud/endpoint-util/src/Endpoint.php',
'AlibabaCloud\\OpenApiUtil\\OpenApiUtilClient' => $vendorDir . '/alibabacloud/openapi-util/src/OpenApiUtilClient.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Dysmsapi' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Dysmsapi.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddShortUrlRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddShortUrlRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddShortUrlResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddShortUrlResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddShortUrlResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddShortUrlResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddShortUrlResponseBody\\data' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddShortUrlResponseBody/data.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignRequest\\signFileList' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignRequest/signFileList.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignResponse.php',
@ -47,13 +43,6 @@ return array(
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\CreateShortParamRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/CreateShortParamRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\CreateShortParamResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/CreateShortParamResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\CreateShortParamResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/CreateShortParamResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\CreateShortParamResponseBody\\data' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/CreateShortParamResponseBody/data.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteShortUrlRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteShortUrlRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteShortUrlResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteShortUrlResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteShortUrlResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteShortUrlResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignResponseBody.php',
@ -72,10 +61,6 @@ return array(
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody\\smsSendDetailDTOs' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody/smsSendDetailDTOs.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody\\smsSendDetailDTOs\\smsSendDetailDTO' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody/smsSendDetailDTOs/smsSendDetailDTO.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QueryShortUrlRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QueryShortUrlRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QueryShortUrlResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QueryShortUrlResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QueryShortUrlResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QueryShortUrlResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QueryShortUrlResponseBody\\data' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QueryShortUrlResponseBody/data.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignResponseBody.php',
@ -85,6 +70,10 @@ return array(
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponseBody\\numberDetail' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponseBody/numberDetail.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsResponseBody.php',
@ -978,6 +967,7 @@ return array(
'League\\Flysystem\\ConfigAwareTrait' => $vendorDir . '/league/flysystem/src/ConfigAwareTrait.php',
'League\\Flysystem\\ConnectionErrorException' => $vendorDir . '/league/flysystem/src/ConnectionErrorException.php',
'League\\Flysystem\\ConnectionRuntimeException' => $vendorDir . '/league/flysystem/src/ConnectionRuntimeException.php',
'League\\Flysystem\\CorruptedPathDetected' => $vendorDir . '/league/flysystem/src/CorruptedPathDetected.php',
'League\\Flysystem\\Directory' => $vendorDir . '/league/flysystem/src/Directory.php',
'League\\Flysystem\\Exception' => $vendorDir . '/league/flysystem/src/Exception.php',
'League\\Flysystem\\File' => $vendorDir . '/league/flysystem/src/File.php',
@ -1016,6 +1006,7 @@ return array(
'League\\MimeTypeDetection\\FinfoMimeTypeDetector' => $vendorDir . '/league/mime-type-detection/src/FinfoMimeTypeDetector.php',
'League\\MimeTypeDetection\\GeneratedExtensionToMimeTypeMap' => $vendorDir . '/league/mime-type-detection/src/GeneratedExtensionToMimeTypeMap.php',
'League\\MimeTypeDetection\\MimeTypeDetector' => $vendorDir . '/league/mime-type-detection/src/MimeTypeDetector.php',
'League\\MimeTypeDetection\\OverridingExtensionToMimeTypeMap' => $vendorDir . '/league/mime-type-detection/src/OverridingExtensionToMimeTypeMap.php',
'Matrix\\Builder' => $vendorDir . '/markbaker/matrix/classes/src/Builder.php',
'Matrix\\Decomposition\\Decomposition' => $vendorDir . '/markbaker/matrix/classes/src/Decomposition/Decomposition.php',
'Matrix\\Decomposition\\LU' => $vendorDir . '/markbaker/matrix/classes/src/Decomposition/LU.php',
@ -1561,33 +1552,32 @@ return array(
'Psr\\SimpleCache\\CacheException' => $vendorDir . '/psr/simple-cache/src/CacheException.php',
'Psr\\SimpleCache\\CacheInterface' => $vendorDir . '/psr/simple-cache/src/CacheInterface.php',
'Psr\\SimpleCache\\InvalidArgumentException' => $vendorDir . '/psr/simple-cache/src/InvalidArgumentException.php',
'Qcloud\\Cos\\Client' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Client.php',
'Qcloud\\Cos\\CommandToRequestTransformer' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/CommandToRequestTransformer.php',
'Qcloud\\Cos\\Copy' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Copy.php',
'Qcloud\\Cos\\ExceptionMiddleware' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ExceptionMiddleware.php',
'Qcloud\\Cos\\ExceptionParser' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ExceptionParser.php',
'Qcloud\\Cos\\Exception\\CosException' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Exception/CosException.php',
'Qcloud\\Cos\\Exception\\ServiceResponseException' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Exception/ServiceResponseException.php',
'Qcloud\\Cos\\ImageParamTemplate\\BlindWatermarkTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/BlindWatermarkTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\CIParamTransformation' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/CIParamTransformation.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageMogrTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageMogrTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageQrcodeTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageQrcodeTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageStyleTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageStyleTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageViewTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageViewTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageWatermarkTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageWatermarkTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\PicOperationsTransformation' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/PicOperationsTransformation.php',
'Qcloud\\Cos\\ImageParamTemplate\\TextWatermarkTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/TextWatermarkTemplate.php',
'Qcloud\\Cos\\MultipartUpload' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/MultipartUpload.php',
'Qcloud\\Cos\\RangeDownload' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/RangeDownload.php',
'Qcloud\\Cos\\Request\\BodyLocation' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Request/BodyLocation.php',
'Qcloud\\Cos\\ResultTransformer' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ResultTransformer.php',
'Qcloud\\Cos\\Serializer' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Serializer.php',
'Qcloud\\Cos\\Service' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Service.php',
'Qcloud\\Cos\\Signature' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Signature.php',
'Qcloud\\Cos\\SignatureMiddleware' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/SignatureMiddleware.php',
'Qcloud\\Cos\\Tests\\COSTest' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Tests/COSTest.php',
'Qcloud\\Cos\\Tests\\TestHelper' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Tests/TestHelper.php',
'Qcloud\\Cos\\Client' => $vendorDir . '/qcloud/cos-sdk-v5/src/Client.php',
'Qcloud\\Cos\\CommandToRequestTransformer' => $vendorDir . '/qcloud/cos-sdk-v5/src/CommandToRequestTransformer.php',
'Qcloud\\Cos\\Copy' => $vendorDir . '/qcloud/cos-sdk-v5/src/Copy.php',
'Qcloud\\Cos\\Descriptions' => $vendorDir . '/qcloud/cos-sdk-v5/src/Descriptions.php',
'Qcloud\\Cos\\ExceptionMiddleware' => $vendorDir . '/qcloud/cos-sdk-v5/src/ExceptionMiddleware.php',
'Qcloud\\Cos\\ExceptionParser' => $vendorDir . '/qcloud/cos-sdk-v5/src/ExceptionParser.php',
'Qcloud\\Cos\\Exception\\CosException' => $vendorDir . '/qcloud/cos-sdk-v5/src/Exception/CosException.php',
'Qcloud\\Cos\\Exception\\ServiceResponseException' => $vendorDir . '/qcloud/cos-sdk-v5/src/Exception/ServiceResponseException.php',
'Qcloud\\Cos\\ImageParamTemplate\\BlindWatermarkTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/BlindWatermarkTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\CIParamTransformation' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/CIParamTransformation.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageMogrTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageMogrTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageQrcodeTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageQrcodeTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageStyleTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageStyleTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageViewTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageViewTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageWatermarkTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageWatermarkTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\PicOperationsTransformation' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/PicOperationsTransformation.php',
'Qcloud\\Cos\\ImageParamTemplate\\TextWatermarkTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/TextWatermarkTemplate.php',
'Qcloud\\Cos\\MultipartUpload' => $vendorDir . '/qcloud/cos-sdk-v5/src/MultipartUpload.php',
'Qcloud\\Cos\\RangeDownload' => $vendorDir . '/qcloud/cos-sdk-v5/src/RangeDownload.php',
'Qcloud\\Cos\\Request\\BodyLocation' => $vendorDir . '/qcloud/cos-sdk-v5/src/Request/BodyLocation.php',
'Qcloud\\Cos\\ResultTransformer' => $vendorDir . '/qcloud/cos-sdk-v5/src/ResultTransformer.php',
'Qcloud\\Cos\\Serializer' => $vendorDir . '/qcloud/cos-sdk-v5/src/Serializer.php',
'Qcloud\\Cos\\Service' => $vendorDir . '/qcloud/cos-sdk-v5/src/Service.php',
'Qcloud\\Cos\\Signature' => $vendorDir . '/qcloud/cos-sdk-v5/src/Signature.php',
'Qcloud\\Cos\\SignatureMiddleware' => $vendorDir . '/qcloud/cos-sdk-v5/src/SignatureMiddleware.php',
'Qiniu\\Auth' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Auth.php',
'Qiniu\\Cdn\\CdnManager' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Cdn/CdnManager.php',
'Qiniu\\Config' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Config.php',
@ -1827,6 +1817,7 @@ return array(
'think\\db\\connector\\Sqlsrv' => $vendorDir . '/topthink/think-orm/src/db/connector/Sqlsrv.php',
'think\\db\\exception\\BindParamException' => $vendorDir . '/topthink/think-orm/src/db/exception/BindParamException.php',
'think\\db\\exception\\DataNotFoundException' => $vendorDir . '/topthink/think-orm/src/db/exception/DataNotFoundException.php',
'think\\db\\exception\\DbEventException' => $vendorDir . '/topthink/think-orm/src/db/exception/DbEventException.php',
'think\\db\\exception\\DbException' => $vendorDir . '/topthink/think-orm/src/db/exception/DbException.php',
'think\\db\\exception\\InvalidArgumentException' => $vendorDir . '/topthink/think-orm/src/db/exception/InvalidArgumentException.php',
'think\\db\\exception\\ModelEventException' => $vendorDir . '/topthink/think-orm/src/db/exception/ModelEventException.php',
@ -1893,6 +1884,7 @@ return array(
'think\\model\\concern\\RelationShip' => $vendorDir . '/topthink/think-orm/src/model/concern/RelationShip.php',
'think\\model\\concern\\SoftDelete' => $vendorDir . '/topthink/think-orm/src/model/concern/SoftDelete.php',
'think\\model\\concern\\TimeStamp' => $vendorDir . '/topthink/think-orm/src/model/concern/TimeStamp.php',
'think\\model\\concern\\Virtual' => $vendorDir . '/topthink/think-orm/src/model/concern/Virtual.php',
'think\\model\\relation\\BelongsTo' => $vendorDir . '/topthink/think-orm/src/model/relation/BelongsTo.php',
'think\\model\\relation\\BelongsToMany' => $vendorDir . '/topthink/think-orm/src/model/relation/BelongsToMany.php',
'think\\model\\relation\\HasMany' => $vendorDir . '/topthink/think-orm/src/model/relation/HasMany.php',

@ -6,8 +6,8 @@ $vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php',
'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php',
'37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php',
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php',
'25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php',
@ -16,23 +16,6 @@ return array(
'667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php',
'9b552a3cc426e3287cc811caefa3cf53' => $vendorDir . '/topthink/think-helper/src/helper.php',
'2cffec82183ee1cea088009cef9a6fc3' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php',
'3af723442581d6c310bf44543f9f5c60' => $vendorDir . '/markbaker/matrix/classes/src/Functions/adjoint.php',
'd803221834c8b57fec95debb5406a797' => $vendorDir . '/markbaker/matrix/classes/src/Functions/antidiagonal.php',
'4714cafbd3be4c72c274a25eae9396bb' => $vendorDir . '/markbaker/matrix/classes/src/Functions/cofactors.php',
'89719dc7c77436609d1c1c31f0797b8f' => $vendorDir . '/markbaker/matrix/classes/src/Functions/determinant.php',
'c28af79ec7730859d83f2d4310b8dd0b' => $vendorDir . '/markbaker/matrix/classes/src/Functions/diagonal.php',
'c5d82bf1ac485e445f911e55789ab4e6' => $vendorDir . '/markbaker/matrix/classes/src/Functions/identity.php',
'0d2d594de24a247f7a33499e933aa21e' => $vendorDir . '/markbaker/matrix/classes/src/Functions/inverse.php',
'f37c25880804a014ef40c8bffbab1b10' => $vendorDir . '/markbaker/matrix/classes/src/Functions/minors.php',
'd6e4e42171df0dbea253b3067fefda38' => $vendorDir . '/markbaker/matrix/classes/src/Functions/trace.php',
'2c9b19fa954fd3e6fcc7e7a1383caddd' => $vendorDir . '/markbaker/matrix/classes/src/Functions/transpose.php',
'0a538fc9b897450ec362480ebbebe94f' => $vendorDir . '/markbaker/matrix/classes/src/Operations/add.php',
'f0843f7f4089ec2343c7445544356385' => $vendorDir . '/markbaker/matrix/classes/src/Operations/directsum.php',
'ad3e8c29aa16d134661a414265677b61' => $vendorDir . '/markbaker/matrix/classes/src/Operations/subtract.php',
'8d37dad4703fab45bfec9dd0bbf3278e' => $vendorDir . '/markbaker/matrix/classes/src/Operations/multiply.php',
'4888a6f58c08148ebe17682f9ce9b2a8' => $vendorDir . '/markbaker/matrix/classes/src/Operations/divideby.php',
'eef6fa3879d3efa347cd24d5eb348f85' => $vendorDir . '/markbaker/matrix/classes/src/Operations/divideinto.php',
'35fab96057f1bf5e7aba31a8a6d5fdde' => $vendorDir . '/topthink/think-orm/stubs/load_stubs.php',
'abede361264e2ae69ec1eee813a101af' => $vendorDir . '/markbaker/complex/classes/src/functions/abs.php',
'21a5860fbef5be28db5ddfbc3cca67c4' => $vendorDir . '/markbaker/complex/classes/src/functions/acos.php',
'1546e3f9d127f2a9bb2d1b6c31c26ef1' => $vendorDir . '/markbaker/complex/classes/src/functions/acosh.php',
@ -75,8 +58,25 @@ return array(
'883af48563631547925fa4c3b48ead07' => $vendorDir . '/markbaker/complex/classes/src/operations/multiply.php',
'f190e3308e6ca23234a2875edc985c03' => $vendorDir . '/markbaker/complex/classes/src/operations/divideby.php',
'ac9e33ce6841aa5bf5d16d465a2f03a7' => $vendorDir . '/markbaker/complex/classes/src/operations/divideinto.php',
'f67964341ef83e59f1cc6a3916599312' => $vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Common.php',
'3af723442581d6c310bf44543f9f5c60' => $vendorDir . '/markbaker/matrix/classes/src/Functions/adjoint.php',
'd803221834c8b57fec95debb5406a797' => $vendorDir . '/markbaker/matrix/classes/src/Functions/antidiagonal.php',
'4714cafbd3be4c72c274a25eae9396bb' => $vendorDir . '/markbaker/matrix/classes/src/Functions/cofactors.php',
'89719dc7c77436609d1c1c31f0797b8f' => $vendorDir . '/markbaker/matrix/classes/src/Functions/determinant.php',
'c28af79ec7730859d83f2d4310b8dd0b' => $vendorDir . '/markbaker/matrix/classes/src/Functions/diagonal.php',
'c5d82bf1ac485e445f911e55789ab4e6' => $vendorDir . '/markbaker/matrix/classes/src/Functions/identity.php',
'0d2d594de24a247f7a33499e933aa21e' => $vendorDir . '/markbaker/matrix/classes/src/Functions/inverse.php',
'f37c25880804a014ef40c8bffbab1b10' => $vendorDir . '/markbaker/matrix/classes/src/Functions/minors.php',
'd6e4e42171df0dbea253b3067fefda38' => $vendorDir . '/markbaker/matrix/classes/src/Functions/trace.php',
'2c9b19fa954fd3e6fcc7e7a1383caddd' => $vendorDir . '/markbaker/matrix/classes/src/Functions/transpose.php',
'0a538fc9b897450ec362480ebbebe94f' => $vendorDir . '/markbaker/matrix/classes/src/Operations/add.php',
'f0843f7f4089ec2343c7445544356385' => $vendorDir . '/markbaker/matrix/classes/src/Operations/directsum.php',
'ad3e8c29aa16d134661a414265677b61' => $vendorDir . '/markbaker/matrix/classes/src/Operations/subtract.php',
'8d37dad4703fab45bfec9dd0bbf3278e' => $vendorDir . '/markbaker/matrix/classes/src/Operations/multiply.php',
'4888a6f58c08148ebe17682f9ce9b2a8' => $vendorDir . '/markbaker/matrix/classes/src/Operations/divideby.php',
'eef6fa3879d3efa347cd24d5eb348f85' => $vendorDir . '/markbaker/matrix/classes/src/Operations/divideinto.php',
'35fab96057f1bf5e7aba31a8a6d5fdde' => $vendorDir . '/topthink/think-orm/stubs/load_stubs.php',
'cd5441689b14144e5573bf989ee47b34' => $vendorDir . '/qcloud/cos-sdk-v5/src/Common.php',
'841780ea2e1d6545ea3a253239d59c05' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/functions.php',
'a9533db9311a767cb2750dc0d2fab4f3' => $baseDir . '/src/common.php',
'c2e070db87d2b104b8a667c2b66afba0' => $baseDir . '/src/service/taobao/bin/TopSdk.php',
'8287b9658cb007bdb2ed347290f0f420' => $baseDir . '/src/common.php',
'0310e7c408dc6480577947a36c5a1419' => $baseDir . '/src/service/taobao/bin/TopSdk.php',
);

@ -15,7 +15,7 @@ return array(
'Symfony\\Component\\VarDumper\\' => array($vendorDir . '/symfony/var-dumper'),
'Symfony\\Component\\EventDispatcher\\' => array($vendorDir . '/symfony/event-dispatcher'),
'Qiniu\\' => array($vendorDir . '/qiniu/php-sdk/src/Qiniu'),
'Qcloud\\Cos\\' => array($vendorDir . '/qcloud/cos-sdk-v5/src/Qcloud/Cos'),
'Qcloud\\Cos\\' => array($vendorDir . '/qcloud/cos-sdk-v5/src'),
'Psr\\SimpleCache\\' => array($vendorDir . '/psr/simple-cache/src'),
'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),

@ -7,8 +7,8 @@ namespace Composer\Autoload;
class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
{
public static $files = array (
'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php',
'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php',
'37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php',
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
'25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php',
@ -17,23 +17,6 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php',
'9b552a3cc426e3287cc811caefa3cf53' => __DIR__ . '/..' . '/topthink/think-helper/src/helper.php',
'2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php',
'3af723442581d6c310bf44543f9f5c60' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/adjoint.php',
'd803221834c8b57fec95debb5406a797' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/antidiagonal.php',
'4714cafbd3be4c72c274a25eae9396bb' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/cofactors.php',
'89719dc7c77436609d1c1c31f0797b8f' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/determinant.php',
'c28af79ec7730859d83f2d4310b8dd0b' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/diagonal.php',
'c5d82bf1ac485e445f911e55789ab4e6' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/identity.php',
'0d2d594de24a247f7a33499e933aa21e' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/inverse.php',
'f37c25880804a014ef40c8bffbab1b10' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/minors.php',
'd6e4e42171df0dbea253b3067fefda38' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/trace.php',
'2c9b19fa954fd3e6fcc7e7a1383caddd' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/transpose.php',
'0a538fc9b897450ec362480ebbebe94f' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/add.php',
'f0843f7f4089ec2343c7445544356385' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/directsum.php',
'ad3e8c29aa16d134661a414265677b61' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/subtract.php',
'8d37dad4703fab45bfec9dd0bbf3278e' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/multiply.php',
'4888a6f58c08148ebe17682f9ce9b2a8' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/divideby.php',
'eef6fa3879d3efa347cd24d5eb348f85' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/divideinto.php',
'35fab96057f1bf5e7aba31a8a6d5fdde' => __DIR__ . '/..' . '/topthink/think-orm/stubs/load_stubs.php',
'abede361264e2ae69ec1eee813a101af' => __DIR__ . '/..' . '/markbaker/complex/classes/src/functions/abs.php',
'21a5860fbef5be28db5ddfbc3cca67c4' => __DIR__ . '/..' . '/markbaker/complex/classes/src/functions/acos.php',
'1546e3f9d127f2a9bb2d1b6c31c26ef1' => __DIR__ . '/..' . '/markbaker/complex/classes/src/functions/acosh.php',
@ -76,10 +59,27 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'883af48563631547925fa4c3b48ead07' => __DIR__ . '/..' . '/markbaker/complex/classes/src/operations/multiply.php',
'f190e3308e6ca23234a2875edc985c03' => __DIR__ . '/..' . '/markbaker/complex/classes/src/operations/divideby.php',
'ac9e33ce6841aa5bf5d16d465a2f03a7' => __DIR__ . '/..' . '/markbaker/complex/classes/src/operations/divideinto.php',
'f67964341ef83e59f1cc6a3916599312' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Common.php',
'3af723442581d6c310bf44543f9f5c60' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/adjoint.php',
'd803221834c8b57fec95debb5406a797' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/antidiagonal.php',
'4714cafbd3be4c72c274a25eae9396bb' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/cofactors.php',
'89719dc7c77436609d1c1c31f0797b8f' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/determinant.php',
'c28af79ec7730859d83f2d4310b8dd0b' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/diagonal.php',
'c5d82bf1ac485e445f911e55789ab4e6' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/identity.php',
'0d2d594de24a247f7a33499e933aa21e' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/inverse.php',
'f37c25880804a014ef40c8bffbab1b10' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/minors.php',
'd6e4e42171df0dbea253b3067fefda38' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/trace.php',
'2c9b19fa954fd3e6fcc7e7a1383caddd' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions/transpose.php',
'0a538fc9b897450ec362480ebbebe94f' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/add.php',
'f0843f7f4089ec2343c7445544356385' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/directsum.php',
'ad3e8c29aa16d134661a414265677b61' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/subtract.php',
'8d37dad4703fab45bfec9dd0bbf3278e' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/multiply.php',
'4888a6f58c08148ebe17682f9ce9b2a8' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/divideby.php',
'eef6fa3879d3efa347cd24d5eb348f85' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/divideinto.php',
'35fab96057f1bf5e7aba31a8a6d5fdde' => __DIR__ . '/..' . '/topthink/think-orm/stubs/load_stubs.php',
'cd5441689b14144e5573bf989ee47b34' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Common.php',
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
'a9533db9311a767cb2750dc0d2fab4f3' => __DIR__ . '/../..' . '/src/common.php',
'c2e070db87d2b104b8a667c2b66afba0' => __DIR__ . '/../..' . '/src/service/taobao/bin/TopSdk.php',
'8287b9658cb007bdb2ed347290f0f420' => __DIR__ . '/../..' . '/src/common.php',
'0310e7c408dc6480577947a36c5a1419' => __DIR__ . '/../..' . '/src/service/taobao/bin/TopSdk.php',
);
public static $prefixLengthsPsr4 = array (
@ -206,7 +206,7 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
),
'Qcloud\\Cos\\' =>
array (
0 => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos',
0 => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src',
),
'Psr\\SimpleCache\\' =>
array (
@ -394,10 +394,6 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'AlibabaCloud\\Endpoint\\Endpoint' => __DIR__ . '/..' . '/alibabacloud/endpoint-util/src/Endpoint.php',
'AlibabaCloud\\OpenApiUtil\\OpenApiUtilClient' => __DIR__ . '/..' . '/alibabacloud/openapi-util/src/OpenApiUtilClient.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Dysmsapi' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Dysmsapi.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddShortUrlRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddShortUrlRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddShortUrlResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddShortUrlResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddShortUrlResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddShortUrlResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddShortUrlResponseBody\\data' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddShortUrlResponseBody/data.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignRequest\\signFileList' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignRequest/signFileList.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignResponse.php',
@ -405,13 +401,6 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\CreateShortParamRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/CreateShortParamRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\CreateShortParamResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/CreateShortParamResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\CreateShortParamResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/CreateShortParamResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\CreateShortParamResponseBody\\data' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/CreateShortParamResponseBody/data.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteShortUrlRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteShortUrlRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteShortUrlResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteShortUrlResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteShortUrlResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteShortUrlResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignResponseBody.php',
@ -430,10 +419,6 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody\\smsSendDetailDTOs' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody/smsSendDetailDTOs.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody\\smsSendDetailDTOs\\smsSendDetailDTO' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody/smsSendDetailDTOs/smsSendDetailDTO.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QueryShortUrlRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QueryShortUrlRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QueryShortUrlResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QueryShortUrlResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QueryShortUrlResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QueryShortUrlResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QueryShortUrlResponseBody\\data' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QueryShortUrlResponseBody/data.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignResponseBody.php',
@ -443,6 +428,10 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponseBody.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponseBody\\numberDetail' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponseBody/numberDetail.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsRequest.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsResponse.php',
'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsResponseBody.php',
@ -1336,6 +1325,7 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'League\\Flysystem\\ConfigAwareTrait' => __DIR__ . '/..' . '/league/flysystem/src/ConfigAwareTrait.php',
'League\\Flysystem\\ConnectionErrorException' => __DIR__ . '/..' . '/league/flysystem/src/ConnectionErrorException.php',
'League\\Flysystem\\ConnectionRuntimeException' => __DIR__ . '/..' . '/league/flysystem/src/ConnectionRuntimeException.php',
'League\\Flysystem\\CorruptedPathDetected' => __DIR__ . '/..' . '/league/flysystem/src/CorruptedPathDetected.php',
'League\\Flysystem\\Directory' => __DIR__ . '/..' . '/league/flysystem/src/Directory.php',
'League\\Flysystem\\Exception' => __DIR__ . '/..' . '/league/flysystem/src/Exception.php',
'League\\Flysystem\\File' => __DIR__ . '/..' . '/league/flysystem/src/File.php',
@ -1374,6 +1364,7 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'League\\MimeTypeDetection\\FinfoMimeTypeDetector' => __DIR__ . '/..' . '/league/mime-type-detection/src/FinfoMimeTypeDetector.php',
'League\\MimeTypeDetection\\GeneratedExtensionToMimeTypeMap' => __DIR__ . '/..' . '/league/mime-type-detection/src/GeneratedExtensionToMimeTypeMap.php',
'League\\MimeTypeDetection\\MimeTypeDetector' => __DIR__ . '/..' . '/league/mime-type-detection/src/MimeTypeDetector.php',
'League\\MimeTypeDetection\\OverridingExtensionToMimeTypeMap' => __DIR__ . '/..' . '/league/mime-type-detection/src/OverridingExtensionToMimeTypeMap.php',
'Matrix\\Builder' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Builder.php',
'Matrix\\Decomposition\\Decomposition' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Decomposition/Decomposition.php',
'Matrix\\Decomposition\\LU' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Decomposition/LU.php',
@ -1919,33 +1910,32 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'Psr\\SimpleCache\\CacheException' => __DIR__ . '/..' . '/psr/simple-cache/src/CacheException.php',
'Psr\\SimpleCache\\CacheInterface' => __DIR__ . '/..' . '/psr/simple-cache/src/CacheInterface.php',
'Psr\\SimpleCache\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/simple-cache/src/InvalidArgumentException.php',
'Qcloud\\Cos\\Client' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Client.php',
'Qcloud\\Cos\\CommandToRequestTransformer' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/CommandToRequestTransformer.php',
'Qcloud\\Cos\\Copy' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Copy.php',
'Qcloud\\Cos\\ExceptionMiddleware' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ExceptionMiddleware.php',
'Qcloud\\Cos\\ExceptionParser' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ExceptionParser.php',
'Qcloud\\Cos\\Exception\\CosException' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Exception/CosException.php',
'Qcloud\\Cos\\Exception\\ServiceResponseException' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Exception/ServiceResponseException.php',
'Qcloud\\Cos\\ImageParamTemplate\\BlindWatermarkTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/BlindWatermarkTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\CIParamTransformation' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/CIParamTransformation.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageMogrTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageMogrTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageQrcodeTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageQrcodeTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageStyleTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageStyleTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageViewTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageViewTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageWatermarkTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/ImageWatermarkTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\PicOperationsTransformation' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/PicOperationsTransformation.php',
'Qcloud\\Cos\\ImageParamTemplate\\TextWatermarkTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ImageParamTemplate/TextWatermarkTemplate.php',
'Qcloud\\Cos\\MultipartUpload' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/MultipartUpload.php',
'Qcloud\\Cos\\RangeDownload' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/RangeDownload.php',
'Qcloud\\Cos\\Request\\BodyLocation' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Request/BodyLocation.php',
'Qcloud\\Cos\\ResultTransformer' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/ResultTransformer.php',
'Qcloud\\Cos\\Serializer' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Serializer.php',
'Qcloud\\Cos\\Service' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Service.php',
'Qcloud\\Cos\\Signature' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Signature.php',
'Qcloud\\Cos\\SignatureMiddleware' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/SignatureMiddleware.php',
'Qcloud\\Cos\\Tests\\COSTest' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Tests/COSTest.php',
'Qcloud\\Cos\\Tests\\TestHelper' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Qcloud/Cos/Tests/TestHelper.php',
'Qcloud\\Cos\\Client' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Client.php',
'Qcloud\\Cos\\CommandToRequestTransformer' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/CommandToRequestTransformer.php',
'Qcloud\\Cos\\Copy' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Copy.php',
'Qcloud\\Cos\\Descriptions' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Descriptions.php',
'Qcloud\\Cos\\ExceptionMiddleware' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ExceptionMiddleware.php',
'Qcloud\\Cos\\ExceptionParser' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ExceptionParser.php',
'Qcloud\\Cos\\Exception\\CosException' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Exception/CosException.php',
'Qcloud\\Cos\\Exception\\ServiceResponseException' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Exception/ServiceResponseException.php',
'Qcloud\\Cos\\ImageParamTemplate\\BlindWatermarkTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/BlindWatermarkTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\CIParamTransformation' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/CIParamTransformation.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageMogrTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageMogrTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageQrcodeTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageQrcodeTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageStyleTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageStyleTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageViewTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageViewTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\ImageWatermarkTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageWatermarkTemplate.php',
'Qcloud\\Cos\\ImageParamTemplate\\PicOperationsTransformation' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/PicOperationsTransformation.php',
'Qcloud\\Cos\\ImageParamTemplate\\TextWatermarkTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/TextWatermarkTemplate.php',
'Qcloud\\Cos\\MultipartUpload' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/MultipartUpload.php',
'Qcloud\\Cos\\RangeDownload' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/RangeDownload.php',
'Qcloud\\Cos\\Request\\BodyLocation' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Request/BodyLocation.php',
'Qcloud\\Cos\\ResultTransformer' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ResultTransformer.php',
'Qcloud\\Cos\\Serializer' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Serializer.php',
'Qcloud\\Cos\\Service' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Service.php',
'Qcloud\\Cos\\Signature' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Signature.php',
'Qcloud\\Cos\\SignatureMiddleware' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/SignatureMiddleware.php',
'Qiniu\\Auth' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Auth.php',
'Qiniu\\Cdn\\CdnManager' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Cdn/CdnManager.php',
'Qiniu\\Config' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Config.php',
@ -2185,6 +2175,7 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'think\\db\\connector\\Sqlsrv' => __DIR__ . '/..' . '/topthink/think-orm/src/db/connector/Sqlsrv.php',
'think\\db\\exception\\BindParamException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/BindParamException.php',
'think\\db\\exception\\DataNotFoundException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/DataNotFoundException.php',
'think\\db\\exception\\DbEventException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/DbEventException.php',
'think\\db\\exception\\DbException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/DbException.php',
'think\\db\\exception\\InvalidArgumentException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/InvalidArgumentException.php',
'think\\db\\exception\\ModelEventException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/ModelEventException.php',
@ -2251,6 +2242,7 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa
'think\\model\\concern\\RelationShip' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/RelationShip.php',
'think\\model\\concern\\SoftDelete' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/SoftDelete.php',
'think\\model\\concern\\TimeStamp' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/TimeStamp.php',
'think\\model\\concern\\Virtual' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/Virtual.php',
'think\\model\\relation\\BelongsTo' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/BelongsTo.php',
'think\\model\\relation\\BelongsToMany' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/BelongsToMany.php',
'think\\model\\relation\\HasMany' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/HasMany.php',

@ -153,17 +153,17 @@
},
{
"name": "alibabacloud/darabonba-openapi",
"version": "0.1.8",
"version_normalized": "0.1.8.0",
"version": "0.1.9",
"version_normalized": "0.1.9.0",
"source": {
"type": "git",
"url": "https://github.com/alibabacloud-sdk-php/darabonba-openapi.git",
"reference": "c577dea4415b6812d52d9e970a517932eed4a997"
"reference": "6f03803394ab48ef54a498e079a3575881e7fc34"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/alibabacloud-sdk-php/darabonba-openapi/zipball/c577dea4415b6812d52d9e970a517932eed4a997",
"reference": "c577dea4415b6812d52d9e970a517932eed4a997",
"url": "https://api.github.com/repos/alibabacloud-sdk-php/darabonba-openapi/zipball/6f03803394ab48ef54a498e079a3575881e7fc34",
"reference": "6f03803394ab48ef54a498e079a3575881e7fc34",
"shasum": "",
"mirrors": [
{
@ -178,7 +178,7 @@
"alibabacloud/tea-utils": "^0.2.0",
"php": ">5.5"
},
"time": "2021-02-20T10:03:26+00:00",
"time": "2021-09-07T09:37:46+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -199,23 +199,23 @@
"description": "Alibaba Cloud OpenApi Client",
"support": {
"issues": "https://github.com/alibabacloud-sdk-php/darabonba-openapi/issues",
"source": "https://github.com/alibabacloud-sdk-php/darabonba-openapi/tree/0.1.8"
"source": "https://github.com/alibabacloud-sdk-php/darabonba-openapi/tree/0.1.9"
},
"install-path": "../alibabacloud/darabonba-openapi"
},
{
"name": "alibabacloud/dysmsapi-20170525",
"version": "1.0.1",
"version_normalized": "1.0.1.0",
"version": "1.0.3",
"version_normalized": "1.0.3.0",
"source": {
"type": "git",
"url": "https://github.com/alibabacloud-sdk-php/Dysmsapi-20170525.git",
"reference": "99a0098c844af962147a765abd4dc967ff311a1c"
"reference": "37bc85289a407fe4523932f31d9ab79faf617e9b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/alibabacloud-sdk-php/Dysmsapi-20170525/zipball/99a0098c844af962147a765abd4dc967ff311a1c",
"reference": "99a0098c844af962147a765abd4dc967ff311a1c",
"url": "https://api.github.com/repos/alibabacloud-sdk-php/Dysmsapi-20170525/zipball/37bc85289a407fe4523932f31d9ab79faf617e9b",
"reference": "37bc85289a407fe4523932f31d9ab79faf617e9b",
"shasum": "",
"mirrors": [
{
@ -225,12 +225,12 @@
]
},
"require": {
"alibabacloud/darabonba-openapi": "^0.1.0",
"alibabacloud/darabonba-openapi": "^0.1.8",
"alibabacloud/endpoint-util": "^0.1.0",
"alibabacloud/tea-utils": "^0.2.0",
"php": ">5.5"
},
"time": "2021-01-04T15:20:30+00:00",
"time": "2021-09-01T02:42:20+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -250,7 +250,7 @@
],
"description": "Alibaba Cloud Dysmsapi (20170525) SDK Library for PHP",
"support": {
"source": "https://github.com/alibabacloud-sdk-php/Dysmsapi-20170525/tree/1.0.1"
"source": "https://github.com/alibabacloud-sdk-php/Dysmsapi-20170525/tree/1.0.3"
},
"install-path": "../alibabacloud/dysmsapi-20170525"
},
@ -307,17 +307,17 @@
},
{
"name": "alibabacloud/openapi-util",
"version": "0.1.8",
"version_normalized": "0.1.8.0",
"version": "0.1.10",
"version_normalized": "0.1.10.0",
"source": {
"type": "git",
"url": "https://github.com/alibabacloud-sdk-php/openapi-util.git",
"reference": "108ef765e9cd11bba0a185a5c12e5ad33621ff35"
"reference": "c677ec9ea357caa98c2054dced1f5045634777da"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/alibabacloud-sdk-php/openapi-util/zipball/108ef765e9cd11bba0a185a5c12e5ad33621ff35",
"reference": "108ef765e9cd11bba0a185a5c12e5ad33621ff35",
"url": "https://api.github.com/repos/alibabacloud-sdk-php/openapi-util/zipball/c677ec9ea357caa98c2054dced1f5045634777da",
"reference": "c677ec9ea357caa98c2054dced1f5045634777da",
"shasum": "",
"mirrors": [
{
@ -335,7 +335,7 @@
"require-dev": {
"phpunit/phpunit": "^4.8.35|^5.4.3"
},
"time": "2021-04-27T09:43:17+00:00",
"time": "2021-12-14T02:46:22+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -356,7 +356,7 @@
"description": "Alibaba Cloud OpenApi Util",
"support": {
"issues": "https://github.com/alibabacloud-sdk-php/openapi-util/issues",
"source": "https://github.com/alibabacloud-sdk-php/openapi-util/tree/0.1.8"
"source": "https://github.com/alibabacloud-sdk-php/openapi-util/tree/0.1.10"
},
"install-path": "../alibabacloud/openapi-util"
},
@ -486,17 +486,17 @@
},
{
"name": "aliyuncs/oss-sdk-php",
"version": "v2.4.2",
"version_normalized": "2.4.2.0",
"version": "v2.4.3",
"version_normalized": "2.4.3.0",
"source": {
"type": "git",
"url": "https://github.com/aliyun/aliyun-oss-php-sdk.git",
"reference": "0c9d902c33847c07efc66c4cdf823deaea8fc2b6"
"reference": "4ccead614915ee6685bf30016afb01aabd347e46"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/aliyun/aliyun-oss-php-sdk/zipball/0c9d902c33847c07efc66c4cdf823deaea8fc2b6",
"reference": "0c9d902c33847c07efc66c4cdf823deaea8fc2b6",
"url": "https://api.github.com/repos/aliyun/aliyun-oss-php-sdk/zipball/4ccead614915ee6685bf30016afb01aabd347e46",
"reference": "4ccead614915ee6685bf30016afb01aabd347e46",
"shasum": "",
"mirrors": [
{
@ -512,7 +512,7 @@
"phpunit/phpunit": "*",
"satooshi/php-coveralls": "*"
},
"time": "2021-06-04T06:55:06+00:00",
"time": "2021-08-25T13:03:58+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -534,7 +534,7 @@
"homepage": "http://www.aliyun.com/product/oss/",
"support": {
"issues": "https://github.com/aliyun/aliyun-oss-php-sdk/issues",
"source": "https://github.com/aliyun/aliyun-oss-php-sdk/tree/v2.4.2"
"source": "https://github.com/aliyun/aliyun-oss-php-sdk/tree/v2.4.3"
},
"install-path": "../aliyuncs/oss-sdk-php"
},
@ -1111,17 +1111,17 @@
},
{
"name": "league/flysystem",
"version": "1.1.3",
"version_normalized": "1.1.3.0",
"version": "1.1.9",
"version_normalized": "1.1.9.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "9be3b16c877d477357c015cec057548cf9b2a14a"
"reference": "094defdb4a7001845300334e7c1ee2335925ef99"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/9be3b16c877d477357c015cec057548cf9b2a14a",
"reference": "9be3b16c877d477357c015cec057548cf9b2a14a",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/094defdb4a7001845300334e7c1ee2335925ef99",
"reference": "094defdb4a7001845300334e7c1ee2335925ef99",
"shasum": "",
"mirrors": [
{
@ -1143,7 +1143,6 @@
"phpunit/phpunit": "^8.5.8"
},
"suggest": {
"ext-fileinfo": "Required for MimeType",
"ext-ftp": "Allows you to use FTP server storage",
"ext-openssl": "Allows you to use FTPS server storage",
"league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2",
@ -1158,7 +1157,7 @@
"spatie/flysystem-dropbox": "Allows you to use Dropbox storage",
"srmklive/flysystem-dropbox-v2": "Allows you to use Dropbox storage for PHP 5 applications"
},
"time": "2020-08-23T07:39:11+00:00",
"time": "2021-12-09T09:40:50+00:00",
"type": "library",
"extra": {
"branch-alias": {
@ -1201,6 +1200,10 @@
"sftp",
"storage"
],
"support": {
"issues": "https://github.com/thephpleague/flysystem/issues",
"source": "https://github.com/thephpleague/flysystem/tree/1.1.9"
},
"funding": [
{
"url": "https://offset.earth/frankdejonge",
@ -1267,17 +1270,17 @@
},
{
"name": "league/mime-type-detection",
"version": "1.7.0",
"version_normalized": "1.7.0.0",
"version": "1.9.0",
"version_normalized": "1.9.0.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/mime-type-detection.git",
"reference": "3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3"
"reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
"reference": "3b9dff8aaf7323590c1d2e443db701eb1f9aa0d3",
"url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/aa70e813a6ad3d1558fc927863d47309b4c23e69",
"reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69",
"shasum": "",
"mirrors": [
{
@ -1291,11 +1294,11 @@
"php": "^7.2 || ^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.18",
"friendsofphp/php-cs-fixer": "^3.2",
"phpstan/phpstan": "^0.12.68",
"phpunit/phpunit": "^8.5.8 || ^9.3"
},
"time": "2021-01-18T20:58:21+00:00",
"time": "2021-11-21T11:48:40+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -1316,7 +1319,7 @@
"description": "Mime-type detection for Flysystem",
"support": {
"issues": "https://github.com/thephpleague/mime-type-detection/issues",
"source": "https://github.com/thephpleague/mime-type-detection/tree/1.7.0"
"source": "https://github.com/thephpleague/mime-type-detection/tree/1.9.0"
},
"funding": [
{
@ -1749,17 +1752,17 @@
},
{
"name": "myclabs/php-enum",
"version": "1.8.0",
"version_normalized": "1.8.0.0",
"version": "1.8.3",
"version_normalized": "1.8.3.0",
"source": {
"type": "git",
"url": "https://github.com/myclabs/php-enum.git",
"reference": "46cf3d8498b095bd33727b13fd5707263af99421"
"reference": "b942d263c641ddb5190929ff840c68f78713e937"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/myclabs/php-enum/zipball/46cf3d8498b095bd33727b13fd5707263af99421",
"reference": "46cf3d8498b095bd33727b13fd5707263af99421",
"url": "https://api.github.com/repos/myclabs/php-enum/zipball/b942d263c641ddb5190929ff840c68f78713e937",
"reference": "b942d263c641ddb5190929ff840c68f78713e937",
"shasum": "",
"mirrors": [
{
@ -1775,9 +1778,9 @@
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "1.*",
"vimeo/psalm": "^4.5.1"
"vimeo/psalm": "^4.6.2"
},
"time": "2021-02-15T16:11:48+00:00",
"time": "2021-07-05T08:18:36+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -1802,7 +1805,7 @@
],
"support": {
"issues": "https://github.com/myclabs/php-enum/issues",
"source": "https://github.com/myclabs/php-enum/tree/1.8.0"
"source": "https://github.com/myclabs/php-enum/tree/1.8.3"
},
"funding": [
{
@ -1818,17 +1821,17 @@
},
{
"name": "obs/esdk-obs-php",
"version": "3.19.9",
"version_normalized": "3.19.9.0",
"version": "3.21.6",
"version_normalized": "3.21.6.0",
"source": {
"type": "git",
"url": "https://github.com/huaweicloud/huaweicloud-sdk-php-obs.git",
"reference": "72ce758acf5475cbb245899a5c7409a03cbeb640"
"reference": "690ea452f1dfdfbf867e279e6ee8afe25f422c6f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/huaweicloud/huaweicloud-sdk-php-obs/zipball/72ce758acf5475cbb245899a5c7409a03cbeb640",
"reference": "72ce758acf5475cbb245899a5c7409a03cbeb640",
"url": "https://api.github.com/repos/huaweicloud/huaweicloud-sdk-php-obs/zipball/690ea452f1dfdfbf867e279e6ee8afe25f422c6f",
"reference": "690ea452f1dfdfbf867e279e6ee8afe25f422c6f",
"shasum": "",
"mirrors": [
{
@ -1846,7 +1849,7 @@
"psr/http-message": "1.0.1",
"psr/log": "~1.0"
},
"time": "2020-01-17T09:19:20+00:00",
"time": "2021-07-22T08:52:54+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -1863,6 +1866,9 @@
"OBS",
"php"
],
"support": {
"source": "https://github.com/huaweicloud/huaweicloud-sdk-php-obs/tree/v3.21.6"
},
"install-path": "../obs/esdk-obs-php"
},
{
@ -2032,17 +2038,17 @@
},
{
"name": "psr/container",
"version": "1.1.1",
"version_normalized": "1.1.1.0",
"version": "1.1.2",
"version_normalized": "1.1.2.0",
"source": {
"type": "git",
"url": "https://github.com/php-fig/container.git",
"reference": "8622567409010282b7aeebe4bb841fe98b58dcaf"
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf",
"reference": "8622567409010282b7aeebe4bb841fe98b58dcaf",
"url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea",
"reference": "513e0666f7216c7459170d56df27dfcefe1689ea",
"shasum": "",
"mirrors": [
{
@ -2052,9 +2058,9 @@
]
},
"require": {
"php": ">=7.2.0"
"php": ">=7.4.0"
},
"time": "2021-03-05T17:36:06+00:00",
"time": "2021-11-05T16:50:12+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -2083,7 +2089,7 @@
],
"support": {
"issues": "https://github.com/php-fig/container/issues",
"source": "https://github.com/php-fig/container/tree/1.1.1"
"source": "https://github.com/php-fig/container/tree/1.1.2"
},
"install-path": "../psr/container"
},
@ -2389,17 +2395,17 @@
},
{
"name": "qcloud/cos-sdk-v5",
"version": "v2.2.0",
"version_normalized": "2.2.0.0",
"version": "v2.4.4",
"version_normalized": "2.4.4.0",
"source": {
"type": "git",
"url": "https://github.com/tencentyun/cos-php-sdk-v5.git",
"reference": "e67ad8143695192ee206bcbcafc78c08da92c621"
"reference": "2862ce2c9244eb12f099483db578910bde9b045a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/tencentyun/cos-php-sdk-v5/zipball/e67ad8143695192ee206bcbcafc78c08da92c621",
"reference": "e67ad8143695192ee206bcbcafc78c08da92c621",
"url": "https://api.github.com/repos/tencentyun/cos-php-sdk-v5/zipball/2862ce2c9244eb12f099483db578910bde9b045a",
"reference": "2862ce2c9244eb12f099483db578910bde9b045a",
"shasum": "",
"mirrors": [
{
@ -2409,19 +2415,23 @@
]
},
"require": {
"guzzlehttp/guzzle": "~6.3",
"guzzlehttp/guzzle-services": "~1.1",
"php": ">=5.3.0"
"ext-curl": "*",
"ext-json": "*",
"ext-simplexml": "*",
"guzzlehttp/guzzle": "^6.2.1 || ^7.0",
"guzzlehttp/guzzle-services": "^1.1",
"guzzlehttp/psr7": "^1.3.1 || ^2.0",
"php": ">=5.6"
},
"time": "2021-05-18T12:47:31+00:00",
"time": "2021-12-03T02:40:30+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-4": {
"Qcloud\\Cos\\": "src/Qcloud/Cos/"
"Qcloud\\Cos\\": "src/"
},
"files": [
"src/Qcloud/Cos/Common.php"
"src/Common.php"
]
},
"notification-url": "https://packagist.org/downloads/",
@ -2436,6 +2446,10 @@
{
"name": "lewzylu",
"email": "327874225@qq.com"
},
{
"name": "tuunalai",
"email": "550566181@qq.com"
}
],
"description": "PHP SDK for QCloud COS",
@ -2446,23 +2460,23 @@
],
"support": {
"issues": "https://github.com/tencentyun/cos-php-sdk-v5/issues",
"source": "https://github.com/tencentyun/cos-php-sdk-v5/tree/v2.2.0"
"source": "https://github.com/tencentyun/cos-php-sdk-v5/tree/v2.4.4"
},
"install-path": "../qcloud/cos-sdk-v5"
},
{
"name": "qiniu/php-sdk",
"version": "v7.3.0",
"version_normalized": "7.3.0.0",
"version": "v7.4.1",
"version_normalized": "7.4.1.0",
"source": {
"type": "git",
"url": "https://github.com/qiniu/php-sdk.git",
"reference": "0a461e13b09545b23df361843c6a65fdd3a26426"
"reference": "10c7ead8357743b4b987a335c14964fb07700d57"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/qiniu/php-sdk/zipball/0a461e13b09545b23df361843c6a65fdd3a26426",
"reference": "0a461e13b09545b23df361843c6a65fdd3a26426",
"url": "https://api.github.com/repos/qiniu/php-sdk/zipball/10c7ead8357743b4b987a335c14964fb07700d57",
"reference": "10c7ead8357743b4b987a335c14964fb07700d57",
"shasum": "",
"mirrors": [
{
@ -2475,10 +2489,11 @@
"php": ">=5.3.3"
},
"require-dev": {
"paragonie/random_compat": ">=2",
"phpunit/phpunit": "~4.0",
"squizlabs/php_codesniffer": "~2.3"
"squizlabs/php_codesniffer": "~3.6"
},
"time": "2020-09-24T07:31:29+00:00",
"time": "2021-09-24T09:39:16+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -2508,6 +2523,10 @@
"sdk",
"storage"
],
"support": {
"issues": "https://github.com/qiniu/php-sdk/issues",
"source": "https://github.com/qiniu/php-sdk/tree/v7.4.1"
},
"install-path": "../qiniu/php-sdk"
},
{
@ -2581,17 +2600,17 @@
},
{
"name": "symfony/polyfill-mbstring",
"version": "v1.23.0",
"version_normalized": "1.23.0.0",
"version": "v1.23.1",
"version_normalized": "1.23.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1"
"reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2df51500adbaebdc4c38dea4c89a2e131c45c8a1",
"reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6",
"reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6",
"shasum": "",
"mirrors": [
{
@ -2606,7 +2625,7 @@
"suggest": {
"ext-mbstring": "For best performance"
},
"time": "2021-05-27T09:27:20+00:00",
"time": "2021-05-27T12:26:48+00:00",
"type": "library",
"extra": {
"branch-alias": {
@ -2650,7 +2669,7 @@
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.0"
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1"
},
"funding": [
{
@ -2755,17 +2774,17 @@
},
{
"name": "symfony/polyfill-php80",
"version": "v1.23.0",
"version_normalized": "1.23.0.0",
"version": "v1.23.1",
"version_normalized": "1.23.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
"reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0"
"reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/eca0bf41ed421bed1b57c4958bab16aa86b757d0",
"reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be",
"reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be",
"shasum": "",
"mirrors": [
{
@ -2777,7 +2796,7 @@
"require": {
"php": ">=7.1"
},
"time": "2021-02-19T12:13:01+00:00",
"time": "2021-07-28T13:41:28+00:00",
"type": "library",
"extra": {
"branch-alias": {
@ -2827,7 +2846,7 @@
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php80/tree/v1.23.0"
"source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1"
},
"funding": [
{
@ -2847,17 +2866,17 @@
},
{
"name": "symfony/var-dumper",
"version": "v4.4.25",
"version_normalized": "4.4.25.0",
"version": "v4.4.34",
"version_normalized": "4.4.34.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "31ea689a8e7d2410016b0d25fc15a1ba05a6e2e0"
"reference": "2d0c056b2faaa3d785bdbd5adecc593a5be9c16e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/31ea689a8e7d2410016b0d25fc15a1ba05a6e2e0",
"reference": "31ea689a8e7d2410016b0d25fc15a1ba05a6e2e0",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/2d0c056b2faaa3d785bdbd5adecc593a5be9c16e",
"reference": "2d0c056b2faaa3d785bdbd5adecc593a5be9c16e",
"shasum": "",
"mirrors": [
{
@ -2870,7 +2889,7 @@
"php": ">=7.1.3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/polyfill-php72": "~1.5",
"symfony/polyfill-php80": "^1.15"
"symfony/polyfill-php80": "^1.16"
},
"conflict": {
"phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0",
@ -2887,7 +2906,7 @@
"ext-intl": "To show region name in time zone dump",
"symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script"
},
"time": "2021-05-27T09:48:32+00:00",
"time": "2021-11-12T10:50:54+00:00",
"bin": [
"Resources/bin/var-dump-server"
],
@ -2925,7 +2944,7 @@
"dump"
],
"support": {
"source": "https://github.com/symfony/var-dumper/tree/v4.4.25"
"source": "https://github.com/symfony/var-dumper/tree/v4.4.34"
},
"funding": [
{
@ -2945,17 +2964,17 @@
},
{
"name": "topthink/framework",
"version": "v6.0.8",
"version_normalized": "6.0.8.0",
"version": "v6.0.9",
"version_normalized": "6.0.9.0",
"source": {
"type": "git",
"url": "https://github.com/top-think/framework.git",
"reference": "4789343672aef06d571d556da369c0e156609bce"
"reference": "0b5fb453f0e533de3af3a1ab6a202510b61be617"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/framework/zipball/4789343672aef06d571d556da369c0e156609bce",
"reference": "4789343672aef06d571d556da369c0e156609bce",
"url": "https://api.github.com/repos/top-think/framework/zipball/0b5fb453f0e533de3af3a1ab6a202510b61be617",
"reference": "0b5fb453f0e533de3af3a1ab6a202510b61be617",
"shasum": "",
"mirrors": [
{
@ -2967,9 +2986,9 @@
"require": {
"ext-json": "*",
"ext-mbstring": "*",
"league/flysystem": "^1.0",
"league/flysystem": "^1.1.4",
"league/flysystem-cached-adapter": "^1.0",
"php": ">=7.1.0",
"php": ">=7.2.5",
"psr/container": "~1.0",
"psr/log": "~1.0",
"psr/simple-cache": "^1.0",
@ -2981,7 +3000,7 @@
"mockery/mockery": "^1.2",
"phpunit/phpunit": "^7.0"
},
"time": "2021-04-27T00:41:08+00:00",
"time": "2021-07-22T03:24:49+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -3013,23 +3032,23 @@
],
"support": {
"issues": "https://github.com/top-think/framework/issues",
"source": "https://github.com/top-think/framework/tree/v6.0.8"
"source": "https://github.com/top-think/framework/tree/v6.0.9"
},
"install-path": "../topthink/framework"
},
{
"name": "topthink/think-helper",
"version": "v3.1.4",
"version_normalized": "3.1.4.0",
"version": "v3.1.5",
"version_normalized": "3.1.5.0",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-helper.git",
"reference": "c28d37743bda4a0455286ca85b17b5791d626e10"
"reference": "f98e3ad44acd27ae85a4d923b1bdfd16c6d8d905"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-helper/zipball/c28d37743bda4a0455286ca85b17b5791d626e10",
"reference": "c28d37743bda4a0455286ca85b17b5791d626e10",
"url": "https://api.github.com/repos/top-think/think-helper/zipball/f98e3ad44acd27ae85a4d923b1bdfd16c6d8d905",
"reference": "f98e3ad44acd27ae85a4d923b1bdfd16c6d8d905",
"shasum": "",
"mirrors": [
{
@ -3041,7 +3060,7 @@
"require": {
"php": ">=7.1.0"
},
"time": "2019-11-08T08:01:10+00:00",
"time": "2021-06-21T06:17:31+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -3063,21 +3082,25 @@
}
],
"description": "The ThinkPHP6 Helper Package",
"support": {
"issues": "https://github.com/top-think/think-helper/issues",
"source": "https://github.com/top-think/think-helper/tree/v3.1.5"
},
"install-path": "../topthink/think-helper"
},
{
"name": "topthink/think-orm",
"version": "v2.0.40",
"version_normalized": "2.0.40.0",
"version": "v2.0.45",
"version_normalized": "2.0.45.0",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-orm.git",
"reference": "1119d979b850849f3725856460cf108eec1c3eb8"
"reference": "3dcf9af447b048103093840833e8c74ab849152f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-orm/zipball/1119d979b850849f3725856460cf108eec1c3eb8",
"reference": "1119d979b850849f3725856460cf108eec1c3eb8",
"url": "https://api.github.com/repos/top-think/think-orm/zipball/3dcf9af447b048103093840833e8c74ab849152f",
"reference": "3dcf9af447b048103093840833e8c74ab849152f",
"shasum": "",
"mirrors": [
{
@ -3097,7 +3120,7 @@
"require-dev": {
"phpunit/phpunit": "^7|^8|^9.5"
},
"time": "2021-04-19T13:29:37+00:00",
"time": "2021-11-30T14:31:05+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -3125,7 +3148,7 @@
],
"support": {
"issues": "https://github.com/top-think/think-orm/issues",
"source": "https://github.com/top-think/think-orm/tree/v2.0.40"
"source": "https://github.com/top-think/think-orm/tree/v2.0.45"
},
"install-path": "../topthink/think-orm"
},

File diff suppressed because it is too large Load Diff

@ -4,8 +4,8 @@
$issues = array();
if (!(PHP_VERSION_ID >= 70300)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.3.0". You are running ' . PHP_VERSION . '.';
if (!(PHP_VERSION_ID >= 70400)) {
$issues[] = 'Your Composer dependencies require a PHP version ">= 7.4.0". You are running ' . PHP_VERSION . '.';
}
if ($issues) {

@ -40,7 +40,6 @@
}
},
"suggest": {
"ext-fileinfo": "Required for MimeType",
"league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem",
"league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files",
"league/flysystem-azure": "Allows you to use Windows Azure Blob storage",

@ -67,6 +67,6 @@ abstract class AbstractAdapter implements AdapterInterface
*/
public function removePathPrefix($path)
{
return substr($path, strlen($this->getPathPrefix()));
return substr($path, strlen((string) $this->getPathPrefix()));
}
}

@ -539,7 +539,7 @@ abstract class AbstractFtpAdapter extends AbstractAdapter
*/
protected function detectSystemType($item)
{
return preg_match('/^[0-9]{2,4}-[0-9]{2}-[0-9]{2}/', $item) ? 'windows' : 'unix';
return preg_match('/^[0-9]{2,4}-[0-9]{2}-[0-9]{2}/', trim($item)) ? 'windows' : 'unix';
}
/**

@ -11,6 +11,8 @@ use League\Flysystem\InvalidRootException;
use League\Flysystem\Util;
use League\Flysystem\Util\MimeType;
use function in_array;
class Ftp extends AbstractFtpAdapter
{
use StreamedCopyTrait;
@ -160,7 +162,7 @@ class Ftp extends AbstractFtpAdapter
{
if ($this->utf8) {
$response = ftp_raw($this->connection, "OPTS UTF8 ON");
if (substr($response[0], 0, 3) !== '200') {
if (!in_array(substr($response[0], 0, 3), ['200', '202'])) {
throw new ConnectionRuntimeException(
'Could not set UTF-8 mode for connection: ' . $this->getHost() . '::' . $this->getPort()
);
@ -235,7 +237,7 @@ class Ftp extends AbstractFtpAdapter
*/
public function disconnect()
{
if (is_resource($this->connection)) {
if ($this->hasFtpConnection()) {
@ftp_close($this->connection);
}
@ -536,8 +538,7 @@ class Ftp extends AbstractFtpAdapter
*/
public function isConnected()
{
return is_resource($this->connection)
&& $this->getRawExecResponseCode('NOOP') === 200;
return $this->hasFtpConnection() && $this->getRawExecResponseCode('NOOP') === 200;
}
/**
@ -563,11 +564,10 @@ class Ftp extends AbstractFtpAdapter
$connection = $this->getConnection();
if ($this->isPureFtpd) {
$path = str_replace(' ', '\ ', $path);
$this->escapePath($path);
$path = str_replace([' ', '[', ']'], ['\ ', '\\[', '\\]'], $path);
}
return ftp_rawlist($connection, $options . ' ' . $path);
return ftp_rawlist($connection, $options . ' ' . $this->escapePath($path));
}
private function getRawExecResponseCode($command)
@ -576,4 +576,9 @@ class Ftp extends AbstractFtpAdapter
return (int) preg_replace('/\D/', '', implode(' ', $response));
}
private function hasFtpConnection(): bool
{
return is_resource($this->connection) || $this->connection instanceof \FTP\Connection;
}
}

@ -0,0 +1,17 @@
<?php
namespace League\Flysystem;
use LogicException;
class CorruptedPathDetected extends LogicException implements FilesystemException
{
/**
* @param string $path
* @return CorruptedPathDetected
*/
public static function forPath($path)
{
return new CorruptedPathDetected("Corrupted path detected: " . $path);
}
}

@ -8,12 +8,13 @@ use League\Flysystem\Plugin\PluggableTrait;
use League\Flysystem\Util\ContentListingFormatter;
/**
* @method array getWithMetadata(string $path, array $metadata)
* @method bool forceCopy(string $path, string $newpath)
* @method bool forceRename(string $path, string $newpath)
* @method array listFiles(string $path = '', boolean $recursive = false)
* @method array listPaths(string $path = '', boolean $recursive = false)
* @method array listWith(array $keys = [], $directory = '', $recursive = false)
* @method void emptyDir(string $dirname)
* @method array|false getWithMetadata(string $path, string[] $metadata)
* @method bool forceCopy(string $path, string $newpath)
* @method bool forceRename(string $path, string $newpath)
* @method array listFiles(string $path = '', boolean $recursive = false)
* @method string[] listPaths(string $path = '', boolean $recursive = false)
* @method array listWith(string[] $keys = [], $directory = '', $recursive = false)
*/
class Filesystem implements FilesystemInterface
{

@ -20,8 +20,6 @@ use League\Flysystem\Plugin\PluginNotFoundException;
* @method void assertPresent($path)
* @method void assertAbsent($path)
* @method Filesystem addPlugin(PluginInterface $plugin)
*
* @deprecated This functionality will be removed in 2.0
*/
class MountManager implements FilesystemInterface
{

@ -20,8 +20,8 @@ class GetWithMetadata extends AbstractPlugin
/**
* Get metadata for an object with required metadata.
*
* @param string $path path to file
* @param array $metadata metadata keys
* @param string $path path to file
* @param string[] $metadata metadata keys
*
* @throws InvalidArgumentException
* @throws FileNotFoundException

@ -20,7 +20,7 @@ class ListPaths extends AbstractPlugin
* @param string $directory
* @param bool $recursive
*
* @return array paths
* @return string[] paths
*/
public function handle($directory = '', $recursive = false)
{

@ -17,9 +17,9 @@ class ListWith extends AbstractPlugin
/**
* List contents with metadata.
*
* @param array $keys
* @param string $directory
* @param bool $recursive
* @param string[] $keys
* @param string $directory
* @param bool $recursive
*
* @return array listing with metadata
*/

@ -5,6 +5,8 @@ namespace League\Flysystem;
use League\Flysystem\Util\MimeType;
use LogicException;
use function strcmp;
class Util
{
/**
@ -102,8 +104,7 @@ class Util
public static function normalizeRelativePath($path)
{
$path = str_replace('\\', '/', $path);
$path = static::removeFunkyWhiteSpace($path);
$path = static::removeFunkyWhiteSpace($path);
$parts = [];
foreach (explode('/', $path) as $part) {
@ -127,11 +128,13 @@ class Util
}
}
return implode('/', $parts);
$path = implode('/', $parts);
return $path;
}
/**
* Removes unprintable characters and invalid unicode characters.
* Rejects unprintable characters and invalid unicode characters.
*
* @param string $path
*
@ -139,10 +142,8 @@ class Util
*/
protected static function removeFunkyWhiteSpace($path)
{
// We do this check in a loop, since removing invalid unicode characters
// can lead to new characters being created.
while (preg_match('#\p{C}+|^\./#u', $path)) {
$path = preg_replace('#\p{C}+|^\./#u', '', $path);
if (preg_match('#\p{C}+#u', $path)) {
throw CorruptedPathDetected::forPath($path);
}
return $path;
@ -205,7 +206,7 @@ class Util
$listedDirectories = [];
foreach ($listing as $object) {
list($directories, $listedDirectories) = static::emulateObjectDirectories($object, $directories, $listedDirectories);
[$directories, $listedDirectories] = static::emulateObjectDirectories($object, $directories, $listedDirectories);
}
$directories = array_diff(array_unique($directories), array_unique($listedDirectories));

@ -1,5 +1,17 @@
# Changelog
## 1.9.0 - 2021-11-21
### Updated
- Updated lookup
- ## 1.8.0 - 2021-09-25
### Added
- Added the decorator `OverridingExtensionToMimeTypeMap` which allows you to override values.
## 1.7.0 - 2021-01-18
### Added

@ -9,6 +9,7 @@
}
],
"scripts": {
"test": "vendor/bin/phpunit",
"phpstan": "vendor/bin/phpstan analyse -l 6 src"
},
"require": {
@ -18,7 +19,7 @@
"require-dev": {
"phpunit/phpunit": "^8.5.8 || ^9.3",
"phpstan/phpstan": "^0.12.68",
"friendsofphp/php-cs-fixer": "^2.18"
"friendsofphp/php-cs-fixer": "^3.2"
},
"autoload": {
"psr-4": {

@ -37,6 +37,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'aep' => 'application/vnd.audiograph',
'afm' => 'application/x-font-type1',
'afp' => 'application/vnd.ibm.modcap',
'age' => 'application/vnd.age',
'ahead' => 'application/vnd.ahead.space',
'ai' => 'application/pdf',
'aif' => 'audio/x-aiff',
@ -45,6 +46,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'air' => 'application/vnd.adobe.air-application-installer-package+zip',
'ait' => 'application/vnd.dvb.ait',
'ami' => 'application/vnd.amiga.ami',
'amr' => 'audio/amr',
'apk' => 'application/vnd.android.package-archive',
'apng' => 'image/apng',
'appcache' => 'text/cache-manifest',
@ -265,6 +267,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'evy' => 'application/x-envoy',
'exe' => 'application/octet-stream',
'exi' => 'application/exi',
'exp' => 'application/express',
'exr' => 'image/aces',
'ext' => 'application/vnd.novadigm.ext',
'ez' => 'application/andrew-inset',
@ -319,6 +322,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'gca' => 'application/x-gca-compressed',
'gdl' => 'model/vnd.gdl',
'gdoc' => 'application/vnd.google-apps.document',
'ged' => 'text/vnd.familysearch.gedcom',
'geo' => 'application/vnd.dynageo',
'geojson' => 'application/geo+json',
'gex' => 'application/vnd.geometry-explorer',
@ -351,8 +355,8 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'gv' => 'text/vnd.graphviz',
'gxf' => 'application/gxf',
'gxt' => 'application/vnd.geonext',
'gz' => 'application/x-gzip',
'gzip' => 'application/x-gzip',
'gz' => 'application/gzip',
'gzip' => 'application/gzip',
'h' => 'text/x-c',
'h261' => 'video/h261',
'h263' => 'video/h263',
@ -457,7 +461,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'karbon' => 'application/vnd.kde.karbon',
'kdb' => 'application/octet-stream',
'kdbx' => 'application/x-keepass2',
'key' => 'application/vnd.apple.keynote',
'key' => 'application/x-iwork-keynote-sffkey',
'kfo' => 'application/vnd.kde.kformula',
'kia' => 'application/vnd.kidspiration',
'kml' => 'application/vnd.google-earth.kml+xml',
@ -507,6 +511,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'm3u8' => 'application/vnd.apple.mpegurl',
'm4a' => 'audio/x-m4a',
'm4p' => 'application/mp4',
'm4s' => 'video/iso.segment',
'm4u' => 'application/vnd.mpegurl',
'm4v' => 'video/x-m4v',
'm13' => 'application/x-msmediaview',
@ -608,6 +613,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'musd' => 'application/mmt-usd+xml',
'musicxml' => 'application/vnd.recordare.musicxml+xml',
'mvb' => 'application/x-msmediaview',
'mvt' => 'application/vnd.mapbox-vector-tile',
'mwf' => 'application/vnd.mfer',
'mxf' => 'application/mxf',
'mxl' => 'application/vnd.recordare.musicxml',
@ -635,7 +641,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'nsf' => 'application/vnd.lotus-notes',
'nt' => 'application/n-triples',
'ntf' => 'application/vnd.nitf',
'numbers' => 'application/vnd.apple.numbers',
'numbers' => 'application/x-iwork-numbers-sffnumbers',
'nzb' => 'application/x-nzb',
'oa2' => 'application/vnd.fujitsu.oasys2',
'oa3' => 'application/vnd.fujitsu.oasys3',
@ -696,7 +702,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'p10' => 'application/x-pkcs10',
'p12' => 'application/x-pkcs12',
'pac' => 'application/x-ns-proxy-autoconfig',
'pages' => 'application/vnd.apple.pages',
'pages' => 'application/x-iwork-pages-sffpages',
'pas' => 'text/x-pascal',
'paw' => 'application/vnd.pawaafile',
'pbd' => 'application/vnd.powerbuilder6',
@ -921,6 +927,9 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'sti' => 'application/vnd.sun.xml.impress.template',
'stk' => 'application/hyperstudio',
'stl' => 'model/stl',
'stpx' => 'model/step+xml',
'stpxz' => 'model/step-xml+zip',
'stpz' => 'model/step+zip',
'str' => 'application/vnd.pg.format',
'stw' => 'application/vnd.sun.xml.writer.template',
'styl' => 'text/stylus',
@ -977,6 +986,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'tpt' => 'application/vnd.trid.tpt',
'tr' => 'text/troff',
'tra' => 'application/vnd.trueapp',
'trig' => 'application/trig',
'trm' => 'application/x-msterminal',
'ts' => 'video/mp2t',
'tsd' => 'application/timestamped-data',
@ -1047,6 +1057,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'vcs' => 'text/x-vcalendar',
'vcx' => 'application/vnd.vcx',
'vdi' => 'application/x-virtualbox-vdi',
'vds' => 'model/vnd.sap.vds',
'vhd' => 'application/x-virtualbox-vhd',
'vis' => 'application/vnd.visionary',
'viv' => 'video/vnd.vivo',
@ -1136,7 +1147,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'xdw' => 'application/vnd.fujixerox.docuworks',
'xel' => 'application/xcap-el+xml',
'xenc' => 'application/xenc+xml',
'xer' => 'application/xcap-error+xml',
'xer' => 'application/patch-ops-error+xml',
'xfdf' => 'application/vnd.adobe.xfdf',
'xfdl' => 'application/vnd.xfdl',
'xht' => 'application/xhtml+xml',
@ -1195,7 +1206,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
'z7' => 'application/x-zmachine',
'z8' => 'application/x-zmachine',
'zaz' => 'application/vnd.zzazz.deck+xml',
'zip' => 'application/x-zip',
'zip' => 'application/zip',
'zir' => 'application/vnd.zul',
'zirz' => 'application/vnd.zul',
'zmm' => 'application/vnd.handheld-entertainment+xml',

@ -0,0 +1,30 @@
<?php
namespace League\MimeTypeDetection;
class OverridingExtensionToMimeTypeMap implements ExtensionToMimeTypeMap
{
/**
* @var ExtensionToMimeTypeMap
*/
private $innerMap;
/**
* @var string[]
*/
private $overrides;
/**
* @param array<string, string> $overrides
*/
public function __construct(ExtensionToMimeTypeMap $innerMap, array $overrides)
{
$this->innerMap = $innerMap;
$this->overrides = $overrides;
}
public function lookupMimeType(string $extension): ?string
{
return $this->overrides[$extension] ?? $this->innerMap->lookupMimeType($extension);
}
}

@ -28,6 +28,6 @@
"require-dev": {
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "1.*",
"vimeo/psalm": "^4.5.1"
"vimeo/psalm": "^4.6.2"
}
}

@ -69,15 +69,25 @@ abstract class Enum implements \JsonSerializable
$value = $value->getValue();
}
/** @psalm-suppress ImplicitToStringCast assertValidValueReturningKey returns always a string but psalm has currently an issue here */
$this->key = static::assertValidValueReturningKey($value);
/** @psalm-var T */
$this->value = $value;
}
/**
* This method exists only for the compatibility reason when deserializing a previously serialized version
* that didn't had the key property
*/
public function __wakeup()
{
/** @psalm-suppress DocblockTypeContradiction key can be null when deserializing an enum without the key */
if ($this->key === null) {
/**
* @psalm-suppress InaccessibleProperty key is not readonly as marked by psalm
* @psalm-suppress PossiblyFalsePropertyAssignmentValue deserializing a case that was removed
*/
$this->key = static::search($this->value);
}
}
@ -85,7 +95,6 @@ abstract class Enum implements \JsonSerializable
/**
* @param mixed $value
* @return static
* @psalm-return static<T>
*/
public static function from($value): self
{
@ -215,6 +224,7 @@ abstract class Enum implements \JsonSerializable
*
* @psalm-pure
* @psalm-assert T $value
* @param mixed $value
*/
public static function assertValidValue($value): void
{
@ -226,6 +236,8 @@ abstract class Enum implements \JsonSerializable
*
* @psalm-pure
* @psalm-assert T $value
* @param mixed $value
* @return string
*/
private static function assertValidValueReturningKey($value): string
{
@ -298,6 +310,7 @@ abstract class Enum implements \JsonSerializable
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
* @psalm-pure
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
return $this->getValue();

@ -1,18 +1,25 @@
<?php
/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* Copyright (c) 2011-2018 Michael Dowling, https://github.com/mtdowling <mtdowling@gmail.com>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
namespace Obs\Internal\Common;

@ -1,18 +1,25 @@
<?php
/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* Copyright (c) 2011-2018 Michael Dowling, https://github.com/mtdowling <mtdowling@gmail.com>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
namespace Obs\Internal\Common;

@ -1,18 +1,25 @@
<?php
/**
* Copyright 2019 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License. You may obtain a copy of the
* License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*
* Copyright (c) 2011-2018 Michael Dowling, https://github.com/mtdowling <mtdowling@gmail.com>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
namespace Obs\Internal\Common;

@ -114,7 +114,11 @@ trait GetResponseTrait
}
}
}
private function isJsonResponse($response) {
return $response -> getHeaderLine('content-type') === 'application/json';
}
private function parseCommonHeaders($model, $response){
$constants = Constants::selectConstants($this -> signature);
foreach($constants::COMMON_HEADERS as $key => $value){
@ -176,7 +180,17 @@ trait GetResponseTrait
}else if($location === 'body' && $body !== null){
if(isset($value['type']) && $value['type'] === 'stream'){
$model[$key] = $body;
}else{
}else if (isset($value['type']) && $value['type'] === 'json') {
$jsonBody = trim($body -> getContents());
if ($jsonBody && ($data = json_decode($jsonBody, true))) {
if (is_array($data)) {
$model[$key] = $data;
} elseif (strlen($data)) {
ObsLog::commonLog(ERROR, "response body %s, and jsonToArray data is %s",$body, $data);
}
}
$closeBody = true;
} else {
$model[$key] = $body -> getContents();
$closeBody = true;
}
@ -248,6 +262,54 @@ trait GetResponseTrait
$body -> close();
}
}
private function parseJsonToException($body, $obsException) {
try {
$jsonErrorBody = trim($body -> getContents());
if ($jsonErrorBody && ($data = json_decode($jsonErrorBody, true))) {
if (is_array($data)) {
if ($data['request_id']) {
$obsException -> setRequestId(strval($data['request_id']));
}
if ($data['code']) {
$obsException -> setExceptionCode(strval($data['code']));
}
if ($data['message']) {
$obsException -> setExceptionMessage(strval($data['message']));
}
} elseif (strlen($data)) {
ObsLog::commonLog(ERROR, "response body %s, and jsonToArray data is %s",$body, $data);
$obsException-> setExceptionMessage("Invalid response datasince it is not json data");
}
}
} finally {
$body -> close();
}
}
private function parseJsonToModel($body, $model) {
try{
$jsonErrorBody = trim($body -> getContents());
if ($jsonErrorBody && ($jsonArray = json_decode($jsonErrorBody, true))) {
if (is_array($jsonArray)) {
if ($jsonArray['request_id']) {
$model['RequestId'] = strval($jsonArray['request_id']);
}
if ($jsonArray['code']) {
$model['Code'] = strval($jsonArray['code']);
}
if ($jsonArray['message']) {
$model['Message'] = strval($jsonArray['message']);
}
} elseif (strlen($jsonArray)) {
ObsLog::commonLog(ERROR, "response body %s, and jsonToArray data is %s",$body, $jsonArray);
$model['Message'] = "Invalid response datasince it is not json data";
}
}
} finally {
$body -> close();
}
}
private function parseXmlToModel($body, $model){
try{
@ -281,6 +343,8 @@ trait GetResponseTrait
{
$statusCode = $response -> getStatusCode();
$expectedLength = $response -> getHeaderLine('content-length');
$responseContentType = $response -> getHeaderLine('content-type');
$expectedLength = is_numeric($expectedLength) ? floatval($expectedLength) : null;
$body = new CheckoutStream($response->getBody(), $expectedLength);
@ -291,11 +355,19 @@ trait GetResponseTrait
$obsException-> setRequest($request);
$obsException-> setResponse($response);
$obsException-> setExceptionType($this->isClientError($response) ? 'client' : 'server');
$this->parseXmlToException($body, $obsException);
if ($responseContentType === 'application/json') {
$this->parseJsonToException($body, $obsException);
} else {
$this->parseXmlToException($body, $obsException);
}
throw $obsException;
}else{
$this->parseCommonHeaders($model, $response);
$this->parseXmlToModel($body, $model);
if ($responseContentType === 'application/json') {
$this->parseJsonToModel($body, $model);
} else {
$this->parseXmlToModel($body, $model);
}
}
}else{
@ -345,7 +417,11 @@ trait GetResponseTrait
if($response){
$obsException-> setResponse($response);
$obsException-> setExceptionType($this->isClientError($response) ? 'client' : 'server');
$this->parseXmlToException($response -> getBody(), $obsException);
if ($this->isJsonResponse($response)) {
$this->parseJsonToException($response -> getBody(), $obsException);
} else {
$this->parseXmlToException($response -> getBody(), $obsException);
}
if ($obsException->getRequestId() === null) {
$prefix = strcasecmp($this->signature, 'obs' ) === 0 ? 'x-obs-' : 'x-amz-';
$requestId = $response->getHeaderLine($prefix . 'request-id');
@ -363,7 +439,6 @@ trait GetResponseTrait
protected function parseException(Model $model, Request $request, RequestException $exception, $message=null)
{
$response = $exception-> hasResponse() ? $exception-> getResponse() : null;
if($this-> exceptionResponseMode){
throw $this->buildException($request, $exception, $message);
}else{

@ -547,6 +547,7 @@ class OBSRequestResource {
]
]
],
'setBucketQuota' => [
'httpMethod' => 'PUT',
'specialParam' => 'quota',
@ -961,6 +962,75 @@ class OBSRequestResource {
]
],
'setFetchPolicy' => [
'httpMethod' => 'PUT',
'specialParam' => 'obsfetchpolicy',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
],
'Policy' => [
'required' => true,
'type' => 'json',
'location' => 'body'
]
],
'responseParameters' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-obs-request-id'
]
]
]
],
'getFetchPolicy' => [
'httpMethod' => 'GET',
'specialParam' => 'obsfetchpolicy',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
]
],
'responseParameters' => [
'type' => 'object',
'properties' => [
'Policy' => [
'type' => 'json',
'location' => 'body'
],
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-obs-request-id'
]
]
]
],
'deleteFetchPolicy' => [
'httpMethod' => 'DELETE',
'specialParam' => 'obsfetchpolicy',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
]
],
'responseParameters' => [
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-obs-request-id'
]
]
],
'setBucketPolicy' => [
'httpMethod' => 'PUT',
'specialParam' => 'policy',
@ -1012,6 +1082,67 @@ class OBSRequestResource {
]
],
'setFetchJob' => [
'httpMethod' => 'PUT',
'specialParam' => 'obsfetchjob',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
],
'Job' => [
'required' => true,
'type' => 'json',
'location' => 'body'
]
],
'responseParameters' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-obs-request-id'
],
'JobInfo' => [
'type' => 'string',
'location' => 'body'
]
]
]
],
'getFetchJob' => [
'httpMethod' => 'GET',
'specialParam' => 'obsfetchjob',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
],
'JobID' => [
'required' => true,
'type' => 'string',
'location' => 'query',
'sentAs' => 'x-fetch-job-id'
],
],
'responseParameters' => [
'type' => 'object',
'properties' => [
'Job' => [
'type' => 'json',
'location' => 'body'
],
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-obs-request-id'
]
]
]
],
'deleteBucketPolicy' => [
'httpMethod' => 'DELETE',
'specialParam' => 'policy',

@ -980,6 +980,136 @@ class V2RequestResource {
]
],
'setFetchPolicy' => [
'httpMethod' => 'PUT',
'specialParam' => 'obsfetchpolicy',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
],
'Policy' => [
'required' => true,
'type' => 'json',
'location' => 'body'
]
],
'responseParameters' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-amz-request-id'
]
]
]
],
'getFetchPolicy' => [
'httpMethod' => 'GET',
'specialParam' => 'obsfetchpolicy',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
]
],
'responseParameters' => [
'type' => 'object',
'properties' => [
'Policy' => [
'type' => 'json',
'location' => 'body'
],
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-amz-request-id'
]
]
]
],
'deleteFetchPolicy' => [
'httpMethod' => 'DELETE',
'specialParam' => 'obsfetchpolicy',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
]
],
'responseParameters' => [
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-amz-request-id'
]
]
],
'setFetchJob' => [
'httpMethod' => 'PUT',
'specialParam' => 'obsfetchjob',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
],
'Job' => [
'required' => true,
'type' => 'json',
'location' => 'body'
]
],
'responseParameters' => [
'type' => 'object',
'properties' => [
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-amz-request-id'
],
'JobInfo' => [
'type' => 'string',
'location' => 'body'
]
]
]
],
'getFetchJob' => [
'httpMethod' => 'GET',
'specialParam' => 'obsfetchjob',
'requestParameters' => [
'Bucket' => [
'required' => true,
'type' => 'string',
'location' => 'dns'
],
'JobID' => [
'required' => true,
'type' => 'string',
'location' => 'query',
'sentAs' => 'x-fetch-job-id'
],
],
'responseParameters' => [
'type' => 'object',
'properties' => [
'Job' => [
'type' => 'json',
'location' => 'body'
],
'RequestId' => [
'location' => 'header',
'sentAs' => 'x-amz-request-id'
]
]
]
],
'setBucketPolicy' => [
'httpMethod' => 'PUT',
'specialParam' => 'policy',

@ -47,7 +47,7 @@ trait SendRequestTrait
protected $region = 'region';
protected $signature = 'v2';
protected $signature = 'obs';
protected $sslVerify = false;
@ -58,6 +58,8 @@ trait SendRequestTrait
protected $socketTimeout = 60;
protected $connectTimeout = 60;
protected $isCname = false;
/** @var Client */
protected $httpClient;
@ -93,6 +95,8 @@ trait SendRequestTrait
}
}
}
$queryParams = [];
if(isset($args['QueryParams']) && is_array($args['QueryParams']) ){
@ -108,7 +112,7 @@ trait SendRequestTrait
$queryParams[$constants::SECURITY_TOKEN_HEAD] = $this->securityToken;
}
$sign = new DefaultSignature($this->ak, $this->sk, $this->pathStyle, $this->endpoint, $method, $this->signature);
$sign = new DefaultSignature($this->ak, $this->sk, $this->pathStyle, $this->endpoint, $method, $this->signature, $this->securityToken, $this->isCname);
$url = parse_url($this->endpoint);
$host = $url['host'];
@ -119,9 +123,11 @@ trait SendRequestTrait
if($this-> pathStyle){
$result = '/' . $bucketName;
}else{
$host = $bucketName . '.' . $host;
$host = $this->isCname ? $host : $bucketName . '.' . $host;
}
}
$headers['Host'] = $host;
if($objectKey){
$objectKey = $sign ->urlencodeWithSafe($objectKey);
@ -201,7 +207,7 @@ trait SendRequestTrait
$queryParams['x-amz-security-token'] = $this->securityToken;
}
$v4 = new V4Signature($this->ak, $this->sk, $this->pathStyle, $this->endpoint, $this->region, $method, $this->signature);
$v4 = new V4Signature($this->ak, $this->sk, $this->pathStyle, $this->endpoint, $this->region, $method, $this->signature, $this->securityToken, $this->isCname);
$url = parse_url($this->endpoint);
$host = $url['host'];
@ -212,9 +218,11 @@ trait SendRequestTrait
if($this-> pathStyle){
$result = '/' . $bucketName;
}else{
$host = $bucketName . '.' . $host;
$host = $this->isCname ? $host : $bucketName . '.' . $host;
}
}
$headers['Host'] = $host;
if($objectKey){
$objectKey = $v4 -> urlencodeWithSafe($objectKey);
@ -550,8 +558,8 @@ trait SendRequestTrait
$endpoint = $this->endpoint;
}
$signatureInterface = strcasecmp($this-> signature, 'v4') === 0 ?
new V4Signature($this->ak, $this->sk, $this->pathStyle, $endpoint, $this->region, $model['method'], $this->signature, $this->securityToken) :
new DefaultSignature($this->ak, $this->sk, $this->pathStyle, $endpoint, $model['method'], $this->signature, $this->securityToken);
new V4Signature($this->ak, $this->sk, $this->pathStyle, $endpoint, $this->region, $model['method'], $this->signature, $this->securityToken, $this->isCname) :
new DefaultSignature($this->ak, $this->sk, $this->pathStyle, $endpoint, $model['method'], $this->signature, $this->securityToken, $this->isCname);
$authResult = $signatureInterface -> doAuth($operation, $params, $model);
$httpMethod = $authResult['method'];
ObsLog::commonLog(DEBUG, 'perform '. strtolower($httpMethod) . ' request with url ' . $authResult['requestUrl']);

@ -43,6 +43,8 @@ abstract class AbstractSignature implements SignatureInterface
protected $securityToken;
protected $signature;
protected $isCname;
public static function urlencodeWithSafe($val, $safe='/'){
if(($len = strlen($val)) === 0){
@ -56,7 +58,7 @@ abstract class AbstractSignature implements SignatureInterface
return implode('', $buffer);
}
protected function __construct($ak, $sk, $pathStyle, $endpoint, $methodName, $signature, $securityToken=false)
protected function __construct($ak, $sk, $pathStyle, $endpoint, $methodName, $signature, $securityToken=false, $isCname=false)
{
$this -> ak = $ak;
$this -> sk = $sk;
@ -65,6 +67,7 @@ abstract class AbstractSignature implements SignatureInterface
$this -> methodName = $methodName;
$this -> signature = $signature;
$this -> securityToken = $securityToken;
$this -> isCname = $isCname;
}
protected function transXmlByType($key, &$value, &$subParams, $transHolder)
@ -291,6 +294,7 @@ abstract class AbstractSignature implements SignatureInterface
$temp[] = self::urlencodeWithSafe($val, ' ;/?:@&=+$,\'*');
}
}
$headers[$name] = $temp;
}
}else if($type === 'password'){
@ -357,7 +361,16 @@ abstract class AbstractSignature implements SignatureInterface
$fileFlag = true;
}else if($type === 'stream'){
$result['body'] = $val;
}else{
} else if ($type === 'json') {
//TODO
$jsonData = json_encode($val);
if (!$jsonData) {
$obsException= new ObsException('input is invalid, since it is not json data');
$obsException-> setExceptionType('client');
throw $obsException;
}
$result['body'] = strval($jsonData);
} else{
$result['body'] = strval($val);
}
}else if($location === 'response'){
@ -372,7 +385,7 @@ abstract class AbstractSignature implements SignatureInterface
$requestUrl = $requestUrl . '/' . $dnsParam;
}else{
$defaultPort = strtolower($url['scheme']) === 'https' ? '443' : '80';
$host = $dnsParam. '.' . $host;
$host = $this -> isCname ? $host : $dnsParam. '.' . $host;
$requestUrl = $url['scheme'] . '://' . $host . ':' . (isset($url['port']) ? $url['port'] : $defaultPort);
}
}

@ -27,10 +27,10 @@ class DefaultSignature extends AbstractSignature
const INTEREST_HEADER_KEY_LIST = array('content-type', 'content-md5', 'date');
public function __construct($ak, $sk, $pathStyle, $endpoint, $methodName, $signature, $securityToken=false)
public function __construct($ak, $sk, $pathStyle, $endpoint, $methodName, $signature, $securityToken=false, $isCname=false)
{
parent::__construct($ak, $sk, $pathStyle, $endpoint, $methodName, $signature, $securityToken);
parent::__construct($ak, $sk, $pathStyle, $endpoint, $methodName, $signature, $securityToken, $isCname);
}
public function doAuth(array &$requestConfig, array &$params, Model $model)
@ -38,7 +38,6 @@ class DefaultSignature extends AbstractSignature
$result = $this -> prepareAuth($requestConfig, $params, $model);
$result['headers']['Date'] = gmdate('D, d M Y H:i:s \G\M\T');
$canonicalstring = $this-> makeCanonicalstring($result['method'], $result['headers'], $result['pathArgs'], $result['dnsParam'], $result['uriParam']);
$result['cannonicalRequest'] = $canonicalstring;
@ -64,7 +63,7 @@ class DefaultSignature extends AbstractSignature
$constants = Constants::selectConstants($this -> signature);
foreach ($headers as $key => $value){
$key = strtolower($key);
$key = strtolower($key);
if(in_array($key, self::INTEREST_HEADER_KEY_LIST) || strpos($key, $constants::HEADER_PREFIX) === 0){
$interestHeaders[$key] = $value;
}
@ -98,7 +97,9 @@ class DefaultSignature extends AbstractSignature
}
$uri = '';
$bucketName = $this->isCname ? $headers['Host'] : $bucketName;
if($bucketName){
$uri .= '/';
$uri .= $bucketName;
@ -113,14 +114,15 @@ class DefaultSignature extends AbstractSignature
}
$uri .= $objectKey;
}
$buffer[] = $uri === ''? '/' : $uri;
if(!empty($pathArgs)){
ksort($pathArgs);
$_pathArgs = [];
foreach ($pathArgs as $key => $value){
if(in_array(strtolower($key), $constants::ALLOWED_RESOURCE_PARAMTER_NAMES)){
if(in_array(strtolower($key), $constants::ALLOWED_RESOURCE_PARAMTER_NAMES) || strpos($key, $constants::HEADER_PREFIX) === 0){
$_pathArgs[] = $value === null || $value === '' ? $key : $key . '=' . urldecode($value);
}
}
@ -129,7 +131,7 @@ class DefaultSignature extends AbstractSignature
$buffer[] = implode('&', $_pathArgs);
}
}
return implode('', $buffer);
}

@ -27,9 +27,9 @@ class V4Signature extends AbstractSignature
protected $utcTimeZone;
public function __construct($ak, $sk, $pathStyle, $endpoint, $region, $methodName, $signature, $securityToken=false)
public function __construct($ak, $sk, $pathStyle, $endpoint, $region, $methodName, $signature, $securityToken=false, $isCname=false)
{
parent::__construct($ak, $sk, $pathStyle, $endpoint, $methodName, $signature, $securityToken);
parent::__construct($ak, $sk, $pathStyle, $endpoint, $methodName, $signature, $securityToken, $isCname);
$this->region = $region;
$this->utcTimeZone = new \DateTimeZone ('UTC');
}

@ -81,7 +81,12 @@ define('EMERGENCY', Logger::EMERGENCY);
* @method Model getBucketTagging(array $args = []);
* @method Model deleteBucketTagging(array $args = []);
* @method Model optionsBucket(array $args = []);
*
* @method Model getFetchPolicy(array $args = []);
* @method Model setFetchPolicy(array $args = []);
* @method Model deleteFetchPolicy(array $args = []);
* @method Model setFetchJob(array $args = []);
* @method Model getFetchJob(array $args = []);
*
* @method Model putObject(array $args = []);
* @method Model getObject(array $args = []);
* @method Model copyObject(array $args = []);
@ -155,12 +160,17 @@ define('EMERGENCY', Logger::EMERGENCY);
* @method Promise listMultipartUploadsAsync(array $args = [], callable $callback);
* @method Promise optionsObjectAsync(array $args = [], callable $callback);
* @method Promise restoreObjectAsync(array $args = [], callable $callback);
* @method Model getFetchPolicyAsync(array $args = [], callable $callback);
* @method Model setFetchPolicyAsync(array $args = [], callable $callback);
* @method Model deleteFetchPolicyAsync(array $args = [], callable $callback);
* @method Model setFetchJobAsync(array $args = [], callable $callback);
* @method Model getFetchJobAsync(array $args = [], callable $callback);
*
*/
class ObsClient
{
const SDK_VERSION = '3.19.9';
const SDK_VERSION = '3.21.6';
const AclPrivate = 'private';
const AclPublicRead = 'public-read';
@ -284,6 +294,10 @@ class ObsClient
if(isset($config['exception_response_mode'])){
$this -> exceptionResponseMode = $config['exception_response_mode'];
}
if (isset($config['is_cname'])) {
$this -> isCname = $config['is_cname'];
}
$host = parse_url($this -> endpoint)['host'];
if(filter_var($host, FILTER_VALIDATE_IP) !== false) {

@ -2,7 +2,7 @@
"name" : "obs/esdk-obs-php",
"description" : "OBS PHP SDK",
"license":"Apache-2.0",
"version":"3.19.9",
"version":"3.21.6",
"require" : {
"php" : ">=5.6.0",
"guzzlehttp/guzzle" : "6.3.0",

@ -12,7 +12,7 @@
}
],
"require": {
"php": ">=7.2.0"
"php": ">=7.4.0"
},
"autoload": {
"psr-4": {

@ -2,9 +2,11 @@
namespace Psr\Container;
use Throwable;
/**
* Base interface representing a generic exception in a container.
*/
interface ContainerExceptionInterface
interface ContainerExceptionInterface extends Throwable
{
}

@ -0,0 +1,29 @@
name: Support Multiple Versions
on:
push:
pull_request:
jobs:
install:
name: PHP${{ matrix.php-version }} Test Install
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest]
php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
max-parallel: 10
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Setup Dependencies
run:
composer install -o

@ -1,17 +0,0 @@
language: php
php:
- 5.6
notifications:
email:
recipients:
- wjielai@tencent.com
- fysntian@tencent.com
before_script:
- composer install --prefer-dist --dev --no-interaction
script:
- phpunit -v --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash)

@ -1,22 +1,113 @@
cos-php-sdk-v5 Upgrade Guide
====================
2.4.3 to 2.4.4
---------
- 修复图片水印签名问题
2.4.2 to 2.4.3
---------
- 优化审核接口返回相关字段
- 增加host开关功能
- GetObject接口支持万象自定义样式
- 修复ip的host bug
2.4.1 to 2.4.2
---------
- 修复图片处理相关接口403签名不对的bug
2.4.0 to 2.4.1
---------
- 增加桶Bucket、GetBucket对应Sample详细注解
- 对部分传入参数进行检查
- 添加doesObjectExist、doesBucketExist对应Sample
- 调整整体项目架构修复composer依赖问题
- 调整UT
2.3.4 to 2.4.0
---------
- 新增文档转码功能,包括提交、查询、拉取文档预览任务
- 丰富头域参数说明
- 修复预签名中将万象参数作为key报错问题
- 调整travis与action后续版本保证多版本测试正常
2.3.3 to 2.3.4
---------
- 修复laravel8中guzzlehttp/psr7报错问题,后续重新整理依赖
- 修复putBucketAccelerate接口与目前API不一致的问题
2.3.2 to 2.3.3
---------
- 修复laravel8中guzzlehttp/psr7报错问题
- 清理无用代码
2.3.1 to 2.3.2
---------
- 新增视频截帧,视频信息查询示例
- 新增PUT/GET Bucket Referer示例
- 对于相应接口添加CRC返回信息
- 修复图片审核中ci-process param出现两次的问题
- 修复PHP5.6 版本的依赖问题
- 根据PHP版本自动composer install guzzle6.x或guzzle7
2.3.0 to 2.3.1
---------
- 修复文本检测的返回格式
- 修复sample中的问题
- 新增视频、文本、文档、音频检测
- 新增媒体转码、截图、拼接
2.2.3 to 2.3.0
---------
- 新增图片审核,视频审核,音频审核,文本审核,文档审核接口
- 新增单链接限速demo
- 暴露getPresigned接口Headers和Params参数接口
- 补充textDetect UT
- 修复stream_for废弃问题
- 修复x-cos头检测逻辑问题
- 修复UT部分bug
2.2.2 to 2.2.3
- 在putObejct中新增x-cos-tagging头
- 修复`GetObjectWithoutSign`bug
2.2.1 to 2.2.2
----------
新增appendObject SDK包括sample,service,test
增加无签名对象下载地址 SDK包括sample,service,test
增加全球加速相关配置参数
将COS_SECRETID修改为SECRETID、COS_SECRETKEY修改为SECRETKEY防止混淆
修复部分逻辑代码bug
修复部分拼写错误
- Add `AppendObject` interface
- Add `GetObjectWithoutSign` interface
- Add `allow_accelerate` param to client
- Change const name `COS_SECRETID->SECRETID` `COS_SECRETKEY->SECRETKEY`
- Fix `getPresigned` interface
- Fix typo
2.2.0 to 2.2.1
----------
- Add `PutObjectTagging` interface
- Add `GetObjectTagging` interface
- Add `DeleteObjectTagging` interface
2.1.6 to 2.2.0
----------
`PutObject` interface supports ci image process
`GetObject` interface supports ci image process
Add `ImageInfo` interface, which is used for get image info
Add `ImageExif` interface, which is used for get image exif
Add `ImageAve` interface, which is used for get image ave
Add `ImageProcess` interface, which is used for data processing on cloud
Add `Qrcode` interface, which is used for qrcode recognition
Add `QrcodeGenerate` interface, which is used for generate qrcode
Add `DetectLabel` interface, which is used for detect image label
Add `PutBucketImageStyle` interface, which is used for add bucket image style
Add `GetBucketImageStyle` interface, which is used for get bucket image style
Add `DeleteBucketImageStyle` interface, which is used for delete bucket image style
Add `PutBucketGuetzli` interface, which is used for open bucket guetzli state
Add `GetBucketGuetzli` interface, which is used for get bucket guetzli state
Add `DeleteBucketGuetzli` interface, which is used for close bucket guetzli state
- `PutObject` interface supports ci image process
- `GetObject` interface supports ci image process
- Add `ImageInfo` interface, which is used for get image info
- Add `ImageExif` interface, which is used for get image exif
- Add `ImageAve` interface, which is used for get image ave
- Add `ImageProcess` interface, which is used for data processing on cloud
- Add `Qrcode` interface, which is used for qrcode recognition
- Add `QrcodeGenerate` interface, which is used for generate qrcode
- Add `DetectLabel` interface, which is used for detect image label
- Add `PutBucketImageStyle` interface, which is used for add bucket image style
- Add `GetBucketImageStyle` interface, which is used for get bucket image style
- Add `DeleteBucketImageStyle` interface, which is used for delete bucket image style
- Add `PutBucketGuetzli` interface, which is used for open bucket guetzli state
- Add `GetBucketGuetzli` interface, which is used for get bucket guetzli state
- Add `DeleteBucketGuetzli` interface, which is used for close bucket guetzli state
2.1.5 to 2.1.6
----------

@ -2,55 +2,51 @@
腾讯云 COS-PHP-SDK-V5[XML API](https://cloud.tencent.com/document/product/436/7751)
[![PHP Version](http://poser.pugx.org/qcloud/cos-sdk-v5/require/php)](https://packagist.org/packages/qcloud/cos-sdk-v5)
[![License](https://poser.pugx.org/qcloud/cos-sdk-v5/license)](LICENSE)
[![Latest Stable Version](https://poser.pugx.org/qcloud/cos-sdk-v5/v/stable)](https://packagist.org/packages/qcloud/cos-sdk-v5)
[![Total Downloads](https://img.shields.io/packagist/dt/qcloud/cos-sdk-v5.svg?style=flat)](https://packagist.org/packages/qcloud/cos-sdk-v5)
[![Build Status](https://travis-ci.com/tencentyun/cos-php-sdk-v5.svg?branch=master)](https://travis-ci.com/tencentyun/cos-php-sdk-v5)
[![Build Status](https://api.travis-ci.com/tencentyun/cos-php-sdk-v5.svg?branch=master)](https://app.travis-ci.com/github/tencentyun/cos-php-sdk-v5)
[![codecov](https://codecov.io/gh/tencentyun/cos-php-sdk-v5/branch/master/graph/badge.svg)](https://codecov.io/gh/tencentyun/cos-php-sdk-v5)
[![Support Multiple Versions](https://github.com/tencentyun/cos-php-sdk-v5/actions/workflows/install.yml/badge.svg)](https://github.com/tencentyun/cos-php-sdk-v5/actions/workflows/install.yml)
## 环境准备
## 依赖
- PHP 5.6+ 您可以通过`php -v`命令查看当前的 PHP 版本。
- [x] PHP >= 5.6
> 如果您的 php 版本 `>=5.3``<5.6` , 请使用 [v1.3](https://github.com/tencentyun/cos-php-sdk-v5/tree/1.3) 版本
> - 如果您的 php 版本 `>=5.3``<5.6` , 请使用 [v1.3](https://github.com/tencentyun/cos-php-sdk-v5/tree/1.3) 版本
- [x] ext-curl
- [x] ext-json
- [x] ext-simplexml
- cURL 扩展 您可以通过`php -m`命令查看 cURL 扩展是否已经安装好。
> - Ubuntu 系统中,您可以使用 apt-get 包管理器安装 PHP 的 cURL 扩展,安装命令如下。
```
sudo apt-get install php-curl
```
> - CentOS 系统中,您可以使用 yum 包管理器安装 PHP 的 cURL 扩展。
```
sudo yum install php-curl
```
## SDK 安装
## 安装
SDK 安装有三种方式:
- Composer 方式
- Phar 方式
- 源码方式
- [Composer 方式](#composer-方式)
- [Phar 方式](#Phar-方式)
- [源码方式](#源码方式)
### Composer 方式
推荐使用 Composer 安装 cos-php-sdk-v5Composer 是 PHP 的依赖管理工具,允许您声明项目所需的依赖,然后自动将它们安装到您的项目中。
```bash
composer require qcloud/cos-sdk-v5
```
> 您可以在 [Composer 官网](https://getcomposer.org/) 上找到更多关于如何安装 Composer配置自动加载以及用于定义依赖项的其他最佳实践等相关信息。
#### 安装步骤:
#### 安装步骤
1. 打开终端
2. 下载 Composer执行以下命令
1. 打开终端
2. 下载 Composer执行以下命令
```
```bash
curl -sS https://getcomposer.org/installer | php
```
3. 创建一个名为`composer.json`的文件,内容如下
3. 创建一个名为`composer.json`的文件,内容如下
```json
{
@ -60,15 +56,15 @@ curl -sS https://getcomposer.org/installer | php
}
```
4. 使用 Composer 安装,执行以下命令
4. 使用 Composer 安装,执行以下命令
```
```bash
php composer.phar install
```
使用该命令后会在当前目录中创建一个 vendor 文件夹,里面包含 SDK 的依赖库和一个 autoload.php 脚本,方便在项目中调用。
5. 通过 autoload.php 脚本调用 cos-php-sdk-v5
5. 通过 autoload.php 脚本调用 cos-php-sdk-v5
```php
require '/path/to/vendor/autoload.php';
@ -80,7 +76,9 @@ require '/path/to/vendor/autoload.php';
Phar 方式安装 SDK 的步骤如下:
1. 在 [GitHub 发布页面](https://github.com/tencentyun/cos-php-sdk-v5/releases) 下载相应的 phar 文件。
1. 在 [GitHub 发布页面](https://github.com/tencentyun/cos-php-sdk-v5/releases) 下载相应的 phar 文件;
> 对于 PHP 版本`>= 5.6`且`<7.2.5``cos-sdk-v5-6.phar`使 Guzzle6
> 对于 PHP 版本`>=7.2.5`的用户请下载`cos-sdk-v5-7.phar`以使用 Guzzle7 版本。
2. 在代码中引入 phar 文件:
```php
@ -91,16 +89,18 @@ require '/path/to/cos-sdk-v5.phar';
源码方式安装 SDK 的步骤如下:
1. 在 [GitHub 发布页面](https://github.com/tencentyun/cos-php-sdk-v5/releases) 下载相应的 cos-sdk-v5.tar.gz 文件。
2. 解压后通过 autoload.php 脚本加载 SDK
1. 在 [GitHub 发布页面](https://github.com/tencentyun/cos-php-sdk-v5/releases) 下载相应的 cos-sdk-v5.tar.gz 文件;
> 对于 PHP 版本`>= 5.6`且`<7.2.5``cos-sdk-v5-6.tar.gz`使 Guzzle6
> 对于 PHP 版本`>=7.2.5`的用户请下载`cos-sdk-v5-7.tar.gz`以使用 Guzzle7 版本。
2. 解压后通过 autoload.php 脚本加载 SDK
```php
require '/path/to/cos-php-sdk-v5/vendor/autoload.php';
require '/path/to/cos-sdk-v5/vendor/autoload.php';
```
## 快速入门
可参照 Demo 程序,详见 [sample 目录](https://github.com/tencentyun/cos-php-sdk-v5/tree/master/sample)。
可参照 Demo 程序,详见 [sample 目录](https://github.com/tencentyun/cos-php-sdk-v5/tree/master/sample)
## 接口文档
@ -292,11 +292,11 @@ try {
echo "$e\n";
}
## getObjectUrl(获取文件UrL)
## getObjectUrl(获取文件Url)
try {
$signedUrl = $cosClient->getObjectUrl($bucket, $key, '+10 minutes');
echo $signedUrl;
} catch (\Exception $e) {
print_r($e);
echo "$e\n";
}
```

@ -13,17 +13,39 @@
{
"name": "lewzylu",
"email": "327874225@qq.com"
},
{
"name": "tuunalai",
"email": "550566181@qq.com"
}
],
"autoload": {
"psr-4": {
"Qcloud\\Cos\\": "src/Qcloud/Cos/"
"Qcloud\\Cos\\": "src/"
},
"files": ["src/Qcloud/Cos/Common.php"]
"files": ["src/Common.php"]
},
"autoload-dev": {
"psr-4": {
"Qcloud\\Cos\\Tests\\": "tests/"
}
},
"require": {
"php": ">=5.3.0",
"guzzlehttp/guzzle": "~6.3",
"guzzlehttp/guzzle-services": "~1.1"
"php": ">=5.6",
"ext-curl": "*",
"ext-json": "*",
"ext-simplexml": "*",
"guzzlehttp/guzzle": "^6.2.1 || ^7.0",
"guzzlehttp/guzzle-services": "^1.1",
"guzzlehttp/psr7": "^1.3.1 || ^2.0"
},
"config": {
"platform-check": false
},
"scripts": {
"test": [
"@putenv XDEBUG_MODE=coverage",
"phpunit -v --color=always"
]
}
}

@ -1,15 +0,0 @@
<phpunit bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="cos">
<directory>src/Qcloud/Cos/Tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="clover.xml"/>
</logging>
</phpunit>

@ -2,9 +2,9 @@
require dirname(__FILE__) . '/../vendor/autoload.php';
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
$region = "ap-beijing"; //设置一个默认的存储桶地域
$secretId = "SECRETID"; //替换为用户的 secretId请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$secretKey = "SECRETKEY"; //替换为用户的 secretKey请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$region = "ap-beijing"; //替换为用户的 region已创建桶归属的region可以在控制台查看https://console.cloud.tencent.com/cos5/bucket
$cosClient = new Qcloud\Cos\Client(
array(
'region' => $region,
@ -14,7 +14,7 @@ $cosClient = new Qcloud\Cos\Client(
'secretKey' => $secretKey)));
try {
$result = $cosClient->abortMultipartUpload(array(
'Bucket' => 'examplebucket-125000000', //格式BucketName-APPID
'Bucket' => 'examplebucket-125000000', //存储桶名称由BucketName-Appid 组成可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
'Key' => 'exampleobject',
'UploadId' => 'string',
));

@ -0,0 +1,37 @@
<?php
require dirname(__FILE__) . '/../vendor/autoload.php';
$secretId = "SECRETID"; //替换为用户的 secretId请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$secretKey = "SECRETKEY"; //替换为用户的 secretKey请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$region = "ap-beijing"; //替换为用户的 region已创建桶归属的region可以在控制台查看https://console.cloud.tencent.com/cos5/bucket
$cosClient = new Qcloud\Cos\Client(
array(
'region' => $region,
'schema' => 'https', //协议头部默认为http
'credentials' => array(
'secretId' => $secretId,
'secretKey' => $secretKey)));
$local_path = "/data/exampleobject";
try {
$result = $cosClient->appendObject(array(
'Bucket' => 'examplebucket-125000000', //存储桶名称由BucketName-Appid 组成可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
'Key' => 'exampleobject',
'Position' => 0, //追加对象位置
'Body' => fopen($local_path, 'rb'),//读取文件内容
));
/*
$result = $cosClient->appendObject(array(
'Bucket' => 'examplebucket-125000000', //存储桶名称由BucketName-Appid 组成可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
'Key' => 'exampleobject',
'Position' => (integer)$result['Position'], //取出上一个追加文件的对象位置进行追加
'Body' => "hello", //文件流
));
*/
// 请求成功
print_r($result);
} catch (\Exception $e) {
// 请求失败
echo($e);
}

@ -2,9 +2,9 @@
require dirname(__FILE__) . '/../vendor/autoload.php';
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
$region = "ap-beijing"; //设置一个默认的存储桶地域
$secretId = "SECRETID"; //替换为用户的 secretId请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$secretKey = "SECRETKEY"; //替换为用户的 secretKey请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$region = "ap-beijing"; //替换为用户的 region已创建桶归属的region可以在控制台查看https://console.cloud.tencent.com/cos5/bucket
$cosClient = new Qcloud\Cos\Client(
array(
'region' => $region,
@ -18,7 +18,7 @@ try {
$blindWatermarkTemplate->setType(2);
$blindWatermarkTemplate->setLevel(3);
$result = $cosClient->getObject(array(
'Bucket' => 'examplebucket-125000000', //格式BucketName-APPID
'Bucket' => 'examplebucket-125000000', //存储桶名称由BucketName-Appid 组成可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
'Key' => 'exampleobject',
'ImageHandleParam' => $blindWatermarkTemplate->queryString(),
'SaveAs' => '/data/exampleobject'

@ -2,9 +2,9 @@
require dirname(__FILE__) . '/../vendor/autoload.php';
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
$region = "ap-beijing"; //设置一个默认的存储桶地域
$secretId = "SECRETID"; //替换为用户的 secretId请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$secretKey = "SECRETKEY"; //替换为用户的 secretKey请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$region = "ap-beijing"; //替换为用户的 region已创建桶归属的region可以在控制台查看https://console.cloud.tencent.com/cos5/bucket
$cosClient = new Qcloud\Cos\Client(
array(
'region' => $region,
@ -14,7 +14,7 @@ $cosClient = new Qcloud\Cos\Client(
'secretKey' => $secretKey)));
try {
$result = $cosClient->getBucketAcl(array(
'Bucket' => 'examplebucket-125000000' //格式BucketName-APPID
'Bucket' => 'examplebucket-125000000' //存储桶名称由BucketName-Appid 组成可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
));
// 请求成功
print_r($result);

@ -2,9 +2,9 @@
require dirname(__FILE__) . '/../vendor/autoload.php';
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
$region = "ap-beijing"; //设置一个默认的存储桶地域
$secretId = "SECRETID"; //替换为用户的 secretId请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$secretKey = "SECRETKEY"; //替换为用户的 secretKey请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$region = "ap-beijing"; //替换为用户的 region已创建桶归属的region可以在控制台查看https://console.cloud.tencent.com/cos5/bucket
$cosClient = new Qcloud\Cos\Client(
array(
'region' => $region,
@ -25,7 +25,7 @@ try {
$ciParamTransformation->addRule($imageMogrTemplate);
$ciParamTransformation->addRule($imageViewTemplate);
$result = $cosClient->getObject(array(
'Bucket' => 'examplebucket-125000000', //格式BucketName-APPID
'Bucket' => 'examplebucket-125000000', //存储桶名称由BucketName-Appid 组成可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
'Key' => 'exampleobject',
'ImageHandleParam' => $ciParamTransformation->queryString(),
'SaveAs' => '/data/exampleobject',

@ -2,9 +2,9 @@
require dirname(__FILE__) . '/../vendor/autoload.php';
$secretId = "COS_SECRETID"; //"云 API 密钥 SecretId";
$secretKey = "COS_SECRETKEY"; //"云 API 密钥 SecretKey";
$region = "ap-beijing"; //设置一个默认的存储桶地域
$secretId = "SECRETID"; //替换为用户的 secretId请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$secretKey = "SECRETKEY"; //替换为用户的 secretKey请登录访问管理控制台进行查看和管理https://console.cloud.tencent.com/cam/capi
$region = "ap-beijing"; //替换为用户的 region已创建桶归属的region可以在控制台查看https://console.cloud.tencent.com/cos5/bucket
$cosClient = new Qcloud\Cos\Client(
array(
'region' => $region,
@ -14,7 +14,7 @@ $cosClient = new Qcloud\Cos\Client(
'secretKey' => $secretKey)));
try {
$result = $cosClient->completeMultipartUpload(array(
'Bucket' => 'examplebucket-125000000', //格式BucketName-APPID
'Bucket' => 'examplebucket-125000000', //存储桶名称由BucketName-Appid 组成可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
'Key' => 'exampleobject',
'UploadId' => 'string',
'Parts' => array(

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save