mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 18:42:49 +08:00
开始实现使用内部的上传逻辑;
This commit is contained in:
20
extend/think/filesystem/driver/Qiniu.php
Normal file
20
extend/think/filesystem/driver/Qiniu.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace think\filesystem\driver;
|
||||
|
||||
use League\Flysystem\AdapterInterface;
|
||||
use think\filesystem\Driver;
|
||||
use Overtrue\Flysystem\Qiniu\QiniuAdapter;
|
||||
|
||||
class Qiniu extends Driver
|
||||
{
|
||||
protected function createAdapter(): AdapterInterface
|
||||
{
|
||||
return new QiniuAdapter(
|
||||
sysconfig('upload','qnoss_access_key'),
|
||||
sysconfig('upload','qnoss_secret_key'),
|
||||
sysconfig('upload','qnoss_bucket'),
|
||||
sysconfig('upload','qnoss_domain')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user