黄宗昌 %!s(int64=2) %!d(string=hai) anos
pai
achega
9f04eccc5c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()]);