zhoulj %!s(int64=4) %!d(string=hai) anos
pai
achega
872148d9a9
Modificáronse 1 ficheiros con 5 adicións e 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');
+    }
 
     /**
      * 获取章节内容