改进阿里云 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), bucket: $configs->get(S3Option::Bucket),
), ),
StrategyKey::Oss => new OssAdapter( StrategyKey::Oss => new OssAdapter(
client: new OssClient( client: new OssClient($configs->get(
accessKeyId: $configs->get(OssOption::AccessKeyId), OssOption::AccessKeyId),
accessKeySecret: $configs->get(OssOption::AccessKeySecret), $configs->get(OssOption::AccessKeySecret),
endpoint: $configs->get(OssOption::Endpoint), $configs->get(OssOption::Endpoint),
), ),
bucket: $configs->get(OssOption::Bucket), bucket: $configs->get(OssOption::Bucket),
), ),

View File

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

File diff suppressed because one or more lines are too long

View File

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

View File

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