mirror of
https://github.com/bs-community/blessing-skin-plugins.git
synced 2025-01-09 04:07:51 +08:00
Adapt for "textures-*"
This commit is contained in:
parent
e071579cdd
commit
5da587b5d4
@ -3,13 +3,13 @@
|
||||
return function () {
|
||||
$disk = [
|
||||
'driver' => 'oss',
|
||||
'access_id' => menv('OSS_ACCESS_ID'),
|
||||
'access_key' => menv('OSS_ACCESS_KEY'),
|
||||
'bucket' => menv('OSS_BUCKET'),
|
||||
'endpoint' => menv('OSS_ENDPOINT'),
|
||||
'ssl' => menv('OSS_SSL', true),
|
||||
'cdnDomain' => menv('OSS_CDN_DOMAIN'),
|
||||
'isCName' => menv('OSS_IS_CNAME', false),
|
||||
'access_id' => env('OSS_ACCESS_ID'),
|
||||
'access_key' => env('OSS_ACCESS_KEY'),
|
||||
'bucket' => env('OSS_BUCKET'),
|
||||
'endpoint' => env('OSS_ENDPOINT'),
|
||||
'ssl' => env('OSS_SSL', true),
|
||||
'cdnDomain' => env('OSS_CDN_DOMAIN'),
|
||||
'isCName' => env('OSS_IS_CNAME', false),
|
||||
'debug' => false
|
||||
];
|
||||
|
||||
|
18
textures-aliyun-oss/composer.lock
generated
18
textures-aliyun-oss/composer.lock
generated
@ -1,7 +1,7 @@
|
||||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "64c6f5c8894dfc8d626ad217166e1cfd",
|
||||
@ -18,13 +18,7 @@
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/aliyun/aliyun-oss-php-sdk/zipball/e69f57916678458642ac9d2fd341ae78a56996c8",
|
||||
"reference": "e69f57916678458642ac9d2fd341ae78a56996c8",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3"
|
||||
@ -65,13 +59,7 @@
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/jacobcyl/Aliyun-oss-storage/zipball/c0cb9ba1d3faf22a1e04a03602aac90a187b5959",
|
||||
"reference": "c0cb9ba1d3faf22a1e04a03602aac90a187b5959",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"aliyuncs/oss-sdk-php": "~2.0"
|
||||
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "textures-aliyun-oss",
|
||||
"version": "1.1.0",
|
||||
"version": "2.0.0",
|
||||
"title": "阿里云对象存储 OSS",
|
||||
"description": "将用户上传的材质存储文件至阿里云 OSS 中。需要 BS v3.5.0 及以上。",
|
||||
"description": "将用户上传的材质存储文件至阿里云 OSS 中。",
|
||||
"author": "printempw",
|
||||
"url": "https://blessing.studio/",
|
||||
"namespace": "TextureAliyunOSS",
|
||||
"config": "config.blade.php",
|
||||
"require": {
|
||||
"blessing-skin-server": "^3.5.0 || ^4.0.0"
|
||||
"blessing-skin-server": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
<section class="content">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<?php
|
||||
@php
|
||||
$instruction = <<<EOT
|
||||
请在皮肤站的 `.env` 配置文件中添加并填写以下条目:
|
||||
|
||||
@ -35,13 +35,13 @@ OSS_SSL=true
|
||||
# OSS_IS_CNAME=false
|
||||
```
|
||||
EOT;
|
||||
?>
|
||||
@endphp
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">OSS 连接配置</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body table-responsive">
|
||||
<?php
|
||||
@php
|
||||
try {
|
||||
Storage::disk('textures')->put('connectivity_test', 'test');
|
||||
Storage::disk('textures')->delete('connectivity_test');
|
||||
@ -52,7 +52,7 @@ EOT;
|
||||
}
|
||||
|
||||
echo app('parsedown')->text($instruction);
|
||||
?>
|
||||
@endphp
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,18 +3,18 @@
|
||||
return function () {
|
||||
$disk = [
|
||||
'driver' => 'cosv5',
|
||||
'region' => menv('COS_REGION', 'ap-shanghai'),
|
||||
'region' => env('COS_REGION', 'ap-shanghai'),
|
||||
'credentials' => [
|
||||
'appId' => menv('COS_APP_ID'),
|
||||
'secretId' => menv('COS_SECRET_ID'),
|
||||
'secretKey' => menv('COS_SECRET_KEY'),
|
||||
'appId' => env('COS_APP_ID'),
|
||||
'secretId' => env('COS_SECRET_ID'),
|
||||
'secretKey' => env('COS_SECRET_KEY'),
|
||||
],
|
||||
'timeout' => menv('COS_TIMEOUT', 60),
|
||||
'connect_timeout' => menv('COS_CONNECT_TIMEOUT', 60),
|
||||
'bucket' => menv('COS_BUCKET'),
|
||||
'cdn' => menv('COS_CDN'),
|
||||
'read_from_cdn' => menv('COS_READ_FROM_CDN', true),
|
||||
'scheme' => menv('COS_SCHEME', 'https'),
|
||||
'timeout' => env('COS_TIMEOUT', 60),
|
||||
'connect_timeout' => env('COS_CONNECT_TIMEOUT', 60),
|
||||
'bucket' => env('COS_BUCKET'),
|
||||
'cdn' => env('COS_CDN'),
|
||||
'read_from_cdn' => env('COS_READ_FROM_CDN', true),
|
||||
'scheme' => env('COS_SCHEME', 'https'),
|
||||
];
|
||||
|
||||
app()->register(Freyo\Flysystem\QcloudCOSv5\ServiceProvider::class);
|
||||
|
232
textures-qcloud-cos/composer.lock
generated
232
textures-qcloud-cos/composer.lock
generated
@ -1,29 +1,30 @@
|
||||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "d38a4ae3d23758c99bfc9288e672d648",
|
||||
"packages": [
|
||||
{
|
||||
"name": "freyo/flysystem-qcloud-cos-v5",
|
||||
"version": "1.1.7",
|
||||
"version": "1.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/freyo/flysystem-qcloud-cos-v5.git",
|
||||
"reference": "9bb515bbde35f0ab72c9a971a1d44af760281162"
|
||||
"reference": "a3d8ca71f2c3d36d300c6ecc9f8a0e0ea0cb3883"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/freyo/flysystem-qcloud-cos-v5/zipball/9bb515bbde35f0ab72c9a971a1d44af760281162",
|
||||
"reference": "9bb515bbde35f0ab72c9a971a1d44af760281162",
|
||||
"url": "https://api.github.com/repos/freyo/flysystem-qcloud-cos-v5/zipball/a3d8ca71f2c3d36d300c6ecc9f8a0e0ea0cb3883",
|
||||
"reference": "a3d8ca71f2c3d36d300c6ecc9f8a0e0ea0cb3883",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"guzzlehttp/guzzle": "~6.0",
|
||||
"league/flysystem": "~1.0",
|
||||
"nesbot/carbon": "~1.0",
|
||||
"nesbot/carbon": "~1.0 || ^2.0",
|
||||
"php": ">=5.5.0",
|
||||
"qcloud/cos-sdk-v5": "^1.2.2"
|
||||
},
|
||||
@ -61,7 +62,7 @@
|
||||
"qcloud-cos",
|
||||
"qcloud-sdk"
|
||||
],
|
||||
"time": "2018-07-15T03:06:13+00:00"
|
||||
"time": "2019-03-17T10:53:26+00:00"
|
||||
},
|
||||
{
|
||||
"name": "guzzle/guzzle",
|
||||
@ -277,32 +278,33 @@
|
||||
},
|
||||
{
|
||||
"name": "guzzlehttp/psr7",
|
||||
"version": "1.4.2",
|
||||
"version": "1.5.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/guzzle/psr7.git",
|
||||
"reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c"
|
||||
"reference": "9f83dded91781a01c63574e387eaa769be769115"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
|
||||
"reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c",
|
||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115",
|
||||
"reference": "9f83dded91781a01c63574e387eaa769be769115",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.4.0",
|
||||
"psr/http-message": "~1.0"
|
||||
"psr/http-message": "~1.0",
|
||||
"ralouphie/getallheaders": "^2.0.5"
|
||||
},
|
||||
"provide": {
|
||||
"psr/http-message-implementation": "1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~4.0"
|
||||
"phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.4-dev"
|
||||
"dev-master": "1.5-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@ -332,38 +334,39 @@
|
||||
"keywords": [
|
||||
"http",
|
||||
"message",
|
||||
"psr-7",
|
||||
"request",
|
||||
"response",
|
||||
"stream",
|
||||
"uri",
|
||||
"url"
|
||||
],
|
||||
"time": "2017-03-20T17:10:46+00:00"
|
||||
"time": "2018-12-04T20:46:45+00:00"
|
||||
},
|
||||
{
|
||||
"name": "league/flysystem",
|
||||
"version": "1.0.45",
|
||||
"version": "1.0.50",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thephpleague/flysystem.git",
|
||||
"reference": "a99f94e63b512d75f851b181afcdf0ee9ebef7e6"
|
||||
"reference": "dab4e7624efa543a943be978008f439c333f2249"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a99f94e63b512d75f851b181afcdf0ee9ebef7e6",
|
||||
"reference": "a99f94e63b512d75f851b181afcdf0ee9ebef7e6",
|
||||
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/dab4e7624efa543a943be978008f439c333f2249",
|
||||
"reference": "dab4e7624efa543a943be978008f439c333f2249",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-fileinfo": "*",
|
||||
"php": ">=5.5.9"
|
||||
},
|
||||
"conflict": {
|
||||
"league/flysystem-sftp": "<1.0.6"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-fileinfo": "*",
|
||||
"phpspec/phpspec": "^3.4",
|
||||
"phpunit/phpunit": "^5.7"
|
||||
"phpunit/phpunit": "^5.7.10"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-fileinfo": "Required for MimeType",
|
||||
@ -422,29 +425,34 @@
|
||||
"sftp",
|
||||
"storage"
|
||||
],
|
||||
"time": "2018-05-07T08:44:23+00:00"
|
||||
"time": "2019-02-01T08:50:36+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nesbot/carbon",
|
||||
"version": "1.32.0",
|
||||
"version": "2.16.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/briannesbitt/Carbon.git",
|
||||
"reference": "64563e2b9f69e4db1b82a60e81efa327a30ff343"
|
||||
"reference": "dd16fedc022180ea4292a03aabe95e9895677911"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/64563e2b9f69e4db1b82a60e81efa327a30ff343",
|
||||
"reference": "64563e2b9f69e4db1b82a60e81efa327a30ff343",
|
||||
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/dd16fedc022180ea4292a03aabe95e9895677911",
|
||||
"reference": "dd16fedc022180ea4292a03aabe95e9895677911",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.9",
|
||||
"symfony/translation": "~2.6 || ~3.0 || ~4.0"
|
||||
"ext-json": "*",
|
||||
"php": "^7.1.8 || ^8.0",
|
||||
"symfony/translation": "^3.4 || ^4.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "~2",
|
||||
"phpunit/phpunit": "^4.8.35 || ^5.7"
|
||||
"friendsofphp/php-cs-fixer": "^2.14 || ^3.0",
|
||||
"kylekatarnls/multi-tester": "^0.1",
|
||||
"phpmd/phpmd": "^2.6",
|
||||
"phpstan/phpstan": "^0.10.8",
|
||||
"phpunit/phpunit": "^7.5 || ^8.0",
|
||||
"squizlabs/php_codesniffer": "^3.4"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
@ -456,7 +464,7 @@
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"": "src/"
|
||||
"Carbon\\": "src/Carbon/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
@ -477,7 +485,7 @@
|
||||
"datetime",
|
||||
"time"
|
||||
],
|
||||
"time": "2018-07-05T06:59:26+00:00"
|
||||
"time": "2019-03-12T09:31:40+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-message",
|
||||
@ -531,16 +539,16 @@
|
||||
},
|
||||
{
|
||||
"name": "qcloud/cos-sdk-v5",
|
||||
"version": "v1.2.3",
|
||||
"version": "v1.3.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tencentyun/cos-php-sdk-v5.git",
|
||||
"reference": "50d99c6ebfa32d3715fc5736340ac904b7398c93"
|
||||
"reference": "ca816d61a5412dd7a248119992b7d32687b10f86"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/tencentyun/cos-php-sdk-v5/zipball/50d99c6ebfa32d3715fc5736340ac904b7398c93",
|
||||
"reference": "50d99c6ebfa32d3715fc5736340ac904b7398c93",
|
||||
"url": "https://api.github.com/repos/tencentyun/cos-php-sdk-v5/zipball/ca816d61a5412dd7a248119992b7d32687b10f86",
|
||||
"reference": "ca816d61a5412dd7a248119992b7d32687b10f86",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -573,20 +581,128 @@
|
||||
"php",
|
||||
"qcloud"
|
||||
],
|
||||
"time": "2018-05-28T08:35:28+00:00"
|
||||
"time": "2019-01-28T12:46:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/event-dispatcher",
|
||||
"version": "v2.8.42",
|
||||
"name": "ralouphie/getallheaders",
|
||||
"version": "2.0.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/event-dispatcher.git",
|
||||
"reference": "9b69aad7d4c086dc94ebade2d5eb9145da5dac8c"
|
||||
"url": "https://github.com/ralouphie/getallheaders.git",
|
||||
"reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/9b69aad7d4c086dc94ebade2d5eb9145da5dac8c",
|
||||
"reference": "9b69aad7d4c086dc94ebade2d5eb9145da5dac8c",
|
||||
"url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
|
||||
"reference": "5601c8a83fbba7ef674a7369456d12f1e0d0eafa",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~3.7.0",
|
||||
"satooshi/php-coveralls": ">=1.0"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"src/getallheaders.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ralph Khattar",
|
||||
"email": "ralph.khattar@gmail.com"
|
||||
}
|
||||
],
|
||||
"description": "A polyfill for getallheaders.",
|
||||
"time": "2016-02-11T07:05:27+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/contracts",
|
||||
"version": "v1.0.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/contracts.git",
|
||||
"reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf",
|
||||
"reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3"
|
||||
},
|
||||
"require-dev": {
|
||||
"psr/cache": "^1.0",
|
||||
"psr/container": "^1.0"
|
||||
},
|
||||
"suggest": {
|
||||
"psr/cache": "When using the Cache contracts",
|
||||
"psr/container": "When using the Service contracts",
|
||||
"symfony/cache-contracts-implementation": "",
|
||||
"symfony/service-contracts-implementation": "",
|
||||
"symfony/translation-contracts-implementation": ""
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Symfony\\Contracts\\": ""
|
||||
},
|
||||
"exclude-from-classmap": [
|
||||
"**/Tests/"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Nicolas Grekas",
|
||||
"email": "p@tchwork.com"
|
||||
},
|
||||
{
|
||||
"name": "Symfony Community",
|
||||
"homepage": "https://symfony.com/contributors"
|
||||
}
|
||||
],
|
||||
"description": "A set of abstractions extracted out of the Symfony components",
|
||||
"homepage": "https://symfony.com",
|
||||
"keywords": [
|
||||
"abstractions",
|
||||
"contracts",
|
||||
"decoupling",
|
||||
"interfaces",
|
||||
"interoperability",
|
||||
"standards"
|
||||
],
|
||||
"time": "2018-12-05T08:06:11+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/event-dispatcher",
|
||||
"version": "v2.8.49",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/event-dispatcher.git",
|
||||
"reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a77e974a5fecb4398833b0709210e3d5e334ffb0",
|
||||
"reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -633,20 +749,20 @@
|
||||
],
|
||||
"description": "Symfony EventDispatcher Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2018-04-06T07:35:03+00:00"
|
||||
"time": "2018-11-21T14:20:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-mbstring",
|
||||
"version": "v1.8.0",
|
||||
"version": "v1.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||
"reference": "3296adf6a6454a050679cde90f95350ad604b171"
|
||||
"reference": "c79c051f5b3a46be09205c73b80b346e4153e494"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/3296adf6a6454a050679cde90f95350ad604b171",
|
||||
"reference": "3296adf6a6454a050679cde90f95350ad604b171",
|
||||
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494",
|
||||
"reference": "c79c051f5b3a46be09205c73b80b346e4153e494",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -658,7 +774,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.8-dev"
|
||||
"dev-master": "1.9-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@ -692,24 +808,25 @@
|
||||
"portable",
|
||||
"shim"
|
||||
],
|
||||
"time": "2018-04-26T10:06:28+00:00"
|
||||
"time": "2018-09-21T13:07:52+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/translation",
|
||||
"version": "v4.1.1",
|
||||
"version": "v4.2.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/translation.git",
|
||||
"reference": "b6d8164085ee0b6debcd1b7a131fd6f63bb04854"
|
||||
"reference": "748464177a77011f8f4cdd076773862ce4915f8f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/translation/zipball/b6d8164085ee0b6debcd1b7a131fd6f63bb04854",
|
||||
"reference": "b6d8164085ee0b6debcd1b7a131fd6f63bb04854",
|
||||
"url": "https://api.github.com/repos/symfony/translation/zipball/748464177a77011f8f4cdd076773862ce4915f8f",
|
||||
"reference": "748464177a77011f8f4cdd076773862ce4915f8f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1.3",
|
||||
"symfony/contracts": "^1.0.2",
|
||||
"symfony/polyfill-mbstring": "~1.0"
|
||||
},
|
||||
"conflict": {
|
||||
@ -717,6 +834,9 @@
|
||||
"symfony/dependency-injection": "<3.4",
|
||||
"symfony/yaml": "<3.4"
|
||||
},
|
||||
"provide": {
|
||||
"symfony/translation-contracts-implementation": "1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"psr/log": "~1.0",
|
||||
"symfony/config": "~3.4|~4.0",
|
||||
@ -734,7 +854,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "4.1-dev"
|
||||
"dev-master": "4.2-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@ -761,7 +881,7 @@
|
||||
],
|
||||
"description": "Symfony Translation Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2018-06-22T08:59:39+00:00"
|
||||
"time": "2019-02-27T03:31:50+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "textures-qcloud-cos",
|
||||
"version": "1.1.0",
|
||||
"version": "2.0.0",
|
||||
"title": "腾讯云对象存储 COS",
|
||||
"description": "将用户上传的材质存储文件至腾讯云 COS 中。仅支持 COS v5。需要 BS v3.5.0 及以上。",
|
||||
"description": "将用户上传的材质存储文件至腾讯云 COS 中。仅支持 COS v5。",
|
||||
"author": "printempw",
|
||||
"url": "https://blessing.studio/",
|
||||
"namespace": "TextureQcloudCOS",
|
||||
"config": "config.blade.php",
|
||||
"require": {
|
||||
"blessing-skin-server": "^3.5.0 || ^4.0.0"
|
||||
"blessing-skin-server": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ EOT;
|
||||
<h3 class="box-title">COS 连接配置</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body table-responsive">
|
||||
<?php
|
||||
@php
|
||||
try {
|
||||
Storage::disk('textures')->put('connectivity_test', 'test');
|
||||
Storage::disk('textures')->delete('connectivity_test');
|
||||
@ -57,7 +57,7 @@ EOT;
|
||||
}
|
||||
|
||||
echo app('parsedown')->text($instruction);
|
||||
?>
|
||||
@endphp
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -4,14 +4,14 @@ return function () {
|
||||
$disk = [
|
||||
'driver' => 'qiniu',
|
||||
'domains' => [
|
||||
'default' => menv('QINIU_DOMAIN'),
|
||||
'https' => menv('QINIU_HTTPS_DOMAIN'),
|
||||
'default' => env('QINIU_DOMAIN'),
|
||||
'https' => env('QINIU_HTTPS_DOMAIN'),
|
||||
'custom' => '',
|
||||
],
|
||||
'access_key' => menv('QINIU_ACCESS_KEY'),
|
||||
'secret_key' => menv('QINIU_SECRET_KEY'),
|
||||
'bucket' => menv('QINIU_BUCKET'),
|
||||
'access' => menv('QINIU_BUCKET_ACCESS', 'public'),
|
||||
'access_key' => env('QINIU_ACCESS_KEY'),
|
||||
'secret_key' => env('QINIU_SECRET_KEY'),
|
||||
'bucket' => env('QINIU_BUCKET'),
|
||||
'access' => env('QINIU_BUCKET_ACCESS', 'public'),
|
||||
'notify_url' => '',
|
||||
];
|
||||
|
||||
|
60
textures-qiniu-storage/composer.lock
generated
60
textures-qiniu-storage/composer.lock
generated
@ -1,41 +1,35 @@
|
||||
{
|
||||
"_readme": [
|
||||
"This file locks the dependencies of your project to a known state",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "547716e7aec796434e2c8dde020806d9",
|
||||
"packages": [
|
||||
{
|
||||
"name": "league/flysystem",
|
||||
"version": "1.0.45",
|
||||
"version": "1.0.50",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/thephpleague/flysystem.git",
|
||||
"reference": "a99f94e63b512d75f851b181afcdf0ee9ebef7e6"
|
||||
"reference": "dab4e7624efa543a943be978008f439c333f2249"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/a99f94e63b512d75f851b181afcdf0ee9ebef7e6",
|
||||
"reference": "a99f94e63b512d75f851b181afcdf0ee9ebef7e6",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/dab4e7624efa543a943be978008f439c333f2249",
|
||||
"reference": "dab4e7624efa543a943be978008f439c333f2249",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-fileinfo": "*",
|
||||
"php": ">=5.5.9"
|
||||
},
|
||||
"conflict": {
|
||||
"league/flysystem-sftp": "<1.0.6"
|
||||
},
|
||||
"require-dev": {
|
||||
"ext-fileinfo": "*",
|
||||
"phpspec/phpspec": "^3.4",
|
||||
"phpunit/phpunit": "^5.7"
|
||||
"phpunit/phpunit": "^5.7.10"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-fileinfo": "Required for MimeType",
|
||||
@ -94,27 +88,21 @@
|
||||
"sftp",
|
||||
"storage"
|
||||
],
|
||||
"time": "2018-05-07T08:44:23+00:00"
|
||||
"time": "2019-02-01T08:50:36+00:00"
|
||||
},
|
||||
{
|
||||
"name": "qiniu/php-sdk",
|
||||
"version": "v7.2.6",
|
||||
"version": "v7.2.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/qiniu/php-sdk.git",
|
||||
"reference": "305ce1c1c0c71f794661fe45a96facf61ef96c5d"
|
||||
"reference": "88d11a5857ebc6871204e9be6ceec54bf5f381e6"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/qiniu/php-sdk/zipball/305ce1c1c0c71f794661fe45a96facf61ef96c5d",
|
||||
"reference": "305ce1c1c0c71f794661fe45a96facf61ef96c5d",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
"url": "https://api.github.com/repos/qiniu/php-sdk/zipball/88d11a5857ebc6871204e9be6ceec54bf5f381e6",
|
||||
"reference": "88d11a5857ebc6871204e9be6ceec54bf5f381e6",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.3.3"
|
||||
@ -151,27 +139,21 @@
|
||||
"sdk",
|
||||
"storage"
|
||||
],
|
||||
"time": "2018-05-18T04:37:29+00:00"
|
||||
"time": "2018-11-06T13:34:32+00:00"
|
||||
},
|
||||
{
|
||||
"name": "zgldh/qiniu-laravel-storage",
|
||||
"version": "0.9.2",
|
||||
"version": "v0.9.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zgldh/qiniu-laravel-storage.git",
|
||||
"reference": "dd40b1b0a4614691cebe11c9abc5d1c9b43016ad"
|
||||
"reference": "671bb4702d4a4d17bc2ba038311b843f7c18aa9c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zgldh/qiniu-laravel-storage/zipball/dd40b1b0a4614691cebe11c9abc5d1c9b43016ad",
|
||||
"reference": "dd40b1b0a4614691cebe11c9abc5d1c9b43016ad",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://dl.laravel-china.org/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
"url": "https://api.github.com/repos/zgldh/qiniu-laravel-storage/zipball/671bb4702d4a4d17bc2ba038311b843f7c18aa9c",
|
||||
"reference": "671bb4702d4a4d17bc2ba038311b843f7c18aa9c",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"league/flysystem": "^1.0",
|
||||
@ -216,7 +198,7 @@
|
||||
"sdk",
|
||||
"storage"
|
||||
],
|
||||
"time": "2018-03-03T11:14:26+00:00"
|
||||
"time": "2018-09-03T04:05:13+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "textures-qiniu-storage",
|
||||
"version": "1.1.0",
|
||||
"version": "2.0.0",
|
||||
"title": "七牛云存储",
|
||||
"description": "将用户上传的材质存储文件至七牛云存储中。需要 BS v3.5.0 及以上。",
|
||||
"description": "将用户上传的材质存储文件至七牛云存储中。",
|
||||
"author": "printempw",
|
||||
"url": "https://blessing.studio/",
|
||||
"namespace": "TextureQiniuStorage",
|
||||
"config": "config.blade.php",
|
||||
"require": {
|
||||
"blessing-skin-server": "^3.5.0 || ^4.0.0"
|
||||
"blessing-skin-server": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ EOT;
|
||||
<h3 class="box-title">七牛云存储连接配置</h3>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body table-responsive">
|
||||
<?php
|
||||
@php
|
||||
try {
|
||||
Storage::disk('textures')->put('connectivity_test', 'test');
|
||||
Storage::disk('textures')->delete('connectivity_test');
|
||||
@ -50,7 +50,7 @@ EOT;
|
||||
}
|
||||
|
||||
echo app('parsedown')->text($instruction);
|
||||
?>
|
||||
@endphp
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user