Browse Source

feat: 批量设置 新增是否会员观看

xiansin 2 năm trước cách đây
mục cha
commit
d89ebf9d7a
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      server/app/Admin/Actions/Form/BatchEditEpisodeForm.php

+ 5 - 0
server/app/Admin/Actions/Form/BatchEditEpisodeForm.php

xqd xqd
@@ -23,6 +23,7 @@ class BatchEditEpisodeForm extends Form implements LazyRenderable
         foreach ($ids as $id){
             Episode::where('id' , $id)->update([
                 'is_opend' => $input['is_opend'],
+                'is_vip_watch' => $input['is_vip_watch'],
             ]);
         }
 
@@ -35,6 +36,10 @@ class BatchEditEpisodeForm extends Form implements LazyRenderable
             ->options(config('global.episode_opend'))
             ->default(1);
 
+        $this->radio('is_vip_watch')
+            ->options(config('global.bool_status'))
+            ->default(1);
+
         $this->hidden('id')->attribute('id','batch-id');
     }