/** * 获取请求Url. * * @param string $key * @param int $expire * @param string $bucket * * @return string */ public function getUrl($key, $expire = 3600, $bucket = null) { return $this->client->generatePresignedUrl([OSSOptions::BUCKET => $this->getBucket($bucket), OSSOptions::KEY => $key, OSSOptions::EXPIRES => $expire]); }