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');
+    }
 
     /**
      * 获取章节内容