改进阿里云 oss client 连接方式

This commit is contained in:
Wisp X 2022-08-17 10:37:53 +08:00
parent b2b1693a2f
commit 2fdb10a60f
5 changed files with 12 additions and 12 deletions

View File

@ -275,10 +275,10 @@ class ImageService
bucket: $configs->get(S3Option::Bucket),
),
StrategyKey::Oss => new OssAdapter(
client: new OssClient(
accessKeyId: $configs->get(OssOption::AccessKeyId),
accessKeySecret: $configs->get(OssOption::AccessKeySecret),
endpoint: $configs->get(OssOption::Endpoint),
client: new OssClient($configs->get(
OssOption::AccessKeyId),
$configs->get(OssOption::AccessKeySecret),
$configs->get(OssOption::Endpoint),
),
bucket: $configs->get(OssOption::Bucket),
),

View File

@ -18,7 +18,7 @@ use App\Enums\Watermark\Mode;
return [
'app' => [
ConfigKey::AppName => 'Lsky Pro',
ConfigKey::AppVersion => 'V 2.0.4',
ConfigKey::AppVersion => 'V 2.0.5',
ConfigKey::SiteKeywords => 'Lsky Pro,lsky,兰空图床',
ConfigKey::SiteDescription => 'Lsky Pro, Your photo album on the cloud.',
ConfigKey::SiteNotice => '',

File diff suppressed because one or more lines are too long

View File

@ -15,8 +15,8 @@
@stack('styles')
<!-- Styles -->
<link rel="stylesheet" href="{{ asset('css/common.css') }}?t=20220427">
<link rel="stylesheet" href="{{ asset('css/app.css') }}?t=20220427">
<link rel="stylesheet" href="{{ asset('css/common.css') }}?t=20220817">
<link rel="stylesheet" href="{{ asset('css/app.css') }}?t=20220817">
</head>
<body class="font-sans antialiased overflow-hidden">
<div class="min-h-screen bg-gray-100" x-data x-cloak>
@ -44,7 +44,7 @@
</div>
</body>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}?t=20220427"></script>
<script src="{{ asset('js/app.js') }}?t=20220817"></script>
@include('common.notice')
<script>
// 开关组件默认值

View File

@ -15,8 +15,8 @@
@stack('styles')
<!-- Styles -->
<link rel="stylesheet" href="{{ asset('css/common.css') }}?t=20220427">
<link rel="stylesheet" href="{{ asset('css/app.css') }}?t=20220427">
<link rel="stylesheet" href="{{ asset('css/common.css') }}?t=20220817">
<link rel="stylesheet" href="{{ asset('css/app.css') }}?t=20220817">
</head>
<body class="font-sans antialiased">
<div class="min-h-screen text-gray-900 bg-gray-100">
@ -24,7 +24,7 @@
</div>
</body>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}?t=20220427"></script>
<script src="{{ asset('js/app.js') }}?t=20220817"></script>
@if(file_exists(public_path('js/custom.js')))
<script src="{{ asset('js/custom.js') }}"></script>
@endif