Commit c2faac04 authored by chentianyu's avatar chentianyu

上传默认唯一名称

parent 5038dc3d
...@@ -77,7 +77,7 @@ class UploadOssService ...@@ -77,7 +77,7 @@ class UploadOssService
* @throws \Meibuyu\Common\Exceptions\HttpResponseException * @throws \Meibuyu\Common\Exceptions\HttpResponseException
* @author chentianyu * @author chentianyu
*/ */
public function uploadImage(UploadedFile $image, string $module, $userId, $uniqueFileName = false) public function uploadImage(UploadedFile $image, string $module, $userId, $uniqueFileName = true)
{ {
$ext = $image->getExtension(); $ext = $image->getExtension();
$clientFilename = $image->getClientFilename(); $clientFilename = $image->getClientFilename();
...@@ -113,7 +113,7 @@ class UploadOssService ...@@ -113,7 +113,7 @@ class UploadOssService
* @throws \Meibuyu\Common\Exceptions\HttpResponseException * @throws \Meibuyu\Common\Exceptions\HttpResponseException
* @author chentianyu * @author chentianyu
*/ */
public function uploadFile(UploadedFile $file, string $module, $userId, $uniqueFileName = false, array $options = []) public function uploadFile(UploadedFile $file, string $module, $userId, $uniqueFileName = true, array $options = [])
{ {
$ext = $file->getExtension(); $ext = $file->getExtension();
$clientFilename = $file->getClientFilename(); $clientFilename = $file->getClientFilename();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment