开始实现使用内部的上传逻辑;

This commit is contained in:
2022-07-11 17:41:20 +08:00
parent 5081cd8790
commit 3078dfad39
12 changed files with 396 additions and 777 deletions

View 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')
);
}
}