소스 검색

oss对接

黄宗昌 2 년 전
부모
커밋
9f04eccc5c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Helper/AttachmentHelper.php

+ 1 - 1
app/Helper/AttachmentHelper.php

xqd
@@ -90,7 +90,7 @@ trait AttachmentHelper
                         $tmppath = $file->getRealPath();
                         //生成文件名
                         $fileName = rand(100, 999) . time() . date('ymd') . '.' . $file->getClientOriginalExtension();
-                        $pathName = 'golf/' . date('Y-m/d') . '/' . $fileName;
+                        $pathName = 'huabook/' . date('Y-m/d') . '/' . $fileName;
                         //上传图片到阿里云OSS
                         $oss = new OssClient(env('ALI_OSS_ACCESS_ID'), env('ALI_OSS_ACCESS_KEY'), env('ALI_OSS_ENDPOINT'));
                         $res = $oss->uploadFile(env('ALI_OSS_BUCKET'), $pathName, $tmppath, ['ContentType' => $file->getClientMimeType()]);