refactor: 七牛云上传

This commit is contained in:
2025-07-24 18:03:41 +08:00
parent 857bb4ad21
commit c0b5bb8e27
9 changed files with 515 additions and 159 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace filesystem\driver;
use League\Flysystem\FilesystemAdapter;
use Overtrue\Flysystem\Qiniu\QiniuAdapter;
class Qiniu extends \think\filesystem\Driver
{
protected function createAdapter(): FilesystemAdapter
{
return new QiniuAdapter(
$this->config['access_key'],
$this->config['secret_key'],
$this->config['bucket'],
$this->config['base_url'],
);
}
}