zhoulj hace 4 años
padre
commit
872148d9a9
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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');
+    }
 
     /**
      * 获取章节内容