zhoulj 4 년 전
부모
커밋
872148d9a9
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      app/Modules/Book/Services/ChapterService.php

+ 5 - 1
app/Modules/Book/Services/ChapterService.php

@@ -18,7 +18,11 @@ use Log;
 
 class ChapterService
 {
-    private static $bucket = env('OSS_BUCKET');
+    public static $bucket ;
+    public function __construct()
+    {
+        $this->bucket = env('OSS_BUCKET');
+    }
 
     /**
      * 获取章节内容