zhoulj há 4 anos atrás
pai
commit
872148d9a9
1 ficheiros alterados com 5 adições e 1 exclusões
  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');
+    }
 
     /**
      * 获取章节内容