去除基廷成员验证
This commit is contained in:
@@ -100,4 +100,30 @@ class Oss
|
||||
throw new BusinessException($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 下载自定义风格文件到内存
|
||||
* @param string $filename
|
||||
* @param string $style
|
||||
* @return string
|
||||
*/
|
||||
public function getCusTomObjectToRAM(string $filename,string $style = "image/resize"): string
|
||||
{
|
||||
try {
|
||||
$ossClient = $this->createClient();
|
||||
|
||||
// 将图片缩放为固定宽高100 px后,再旋转90°。
|
||||
|
||||
|
||||
$options = array(
|
||||
OssClient::OSS_PROCESS => $style);
|
||||
|
||||
$object = $filename;
|
||||
return $ossClient->getObject($this->config['bucket'], $object,$options);
|
||||
}catch(\Exception $e) {
|
||||
throw new BusinessException($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user