zz 6 лет назад
Родитель
Сommit
bcc26750e7

+ 1 - 1
app/Http/Controllers/Wap/Book/ChapterController.php

@@ -1029,7 +1029,7 @@ class ChapterController extends BaseController
             //签过到了
             return 0;
         }
-        if(in_array($this->distribution_channel_id,explode(',',redisEnv('NEW_SIGN_CHANNELS',''))))
+        if(in_array($this->distribution_channel_id,explode(',',redisEnv('NEW_SIGN_CHANNELS','')))){
             $version = UserSignService::getUserSignVersion($this->uid);
         }else{
             $version = 'v1';

+ 1 - 1
app/Modules/Book/Services/BookConfigService.php

@@ -424,7 +424,7 @@ class BookConfigService
            ->where('book_categories.pid',$sex)
            ->orderBy('book_configs.bid')
            ->get()
-           ->random(1);
+           ->random(1)->first();
     }
 
 }