Commit 5d7d5af3 authored by chentianyu's avatar chentianyu

oss,例子注释更新

parent e43a6151
......@@ -56,7 +56,7 @@ class UploadExample extends AbstractController
* UploadedFile $image
* string $module 模块名称,常量定义在 namespace App\Common\Enum\OssEnum
* int $userId
* bool $uniqueFileName 是否为唯一文件名,默认否
* bool $uniqueFileName 是否重新生成唯一文件名(默认否,沿用源文件名,注意文件重复上传会报oss错误。)
*/
$res = $this->service->uploadImage($image, $module, $userId, $uniqueFileName = false);
return success('上传成功', $res);
......@@ -81,7 +81,7 @@ class UploadExample extends AbstractController
* UploadedFile $file
* string $module 模块名称,常量定义在 namespace App\Common\Enum\OssEnum
* int $userId
* bool $uniqueFileName 是否为唯一文件名,默认否
* bool $uniqueFileName 是否重新生成唯一文件名(默认否,沿用源文件名,注意文件重复上传会报oss错误。)
* array $options 其他选项
*/
$res = $this->service->uploadFile($file, $module, $userId, $uniqueFileName = false, $options = ['maxSize' => 10 * 1024 * 1024]);
......
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