mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 15:32:48 +08:00
优化第三方存储链接生成,更符合接口规范;优化上传配置文件;
This commit is contained in:
@@ -22,4 +22,9 @@ class Alioss extends Driver
|
||||
$config
|
||||
);
|
||||
}
|
||||
|
||||
public function url(string $path): string
|
||||
{
|
||||
return $this->concatPathToUrl(sysconfig('upload', 'alioss_domain'), $path);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,5 +16,10 @@ class Qiniu extends Driver
|
||||
sysconfig('upload','qnoss_domain')
|
||||
);
|
||||
}
|
||||
|
||||
public function url(string $path): string
|
||||
{
|
||||
return $this->concatPathToUrl(sysconfig('upload', 'qnoss_domain'), $path);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,4 +32,9 @@ class Txcos extends Driver
|
||||
|
||||
return $adapter;
|
||||
}
|
||||
|
||||
public function url(string $path): string
|
||||
{
|
||||
return $this->concatPathToUrl(sysconfig('upload', 'txcos_domain'), $path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user