修正验证吗

This commit is contained in:
2023-03-22 15:15:33 +08:00
parent 563e5ca7ba
commit 26fc5f5e62
12 changed files with 326 additions and 59 deletions
+6 -1
View File
@@ -110,9 +110,14 @@ class Oss
public function getCusTomObjectToRAM(string $filename,string $style = "image/resize"): string
{
try {
// $download_file = "./runtime/aaa.jpg";
$ossClient = $this->createClient();
$options = array(
OssClient::OSS_PROCESS => $style);
OssClient::OSS_PROCESS => $style,
// OssClient::OSS_FILE_DOWNLOAD => $download_file,
);
$object = $filename;
return $ossClient->getObject($this->config['bucket'], $object,$options);