Преглед на файлове

七牛私有地址设置

liuzejian преди 2 години
родител
ревизия
911e98966c
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      modules/Video/Http/Controllers/EpisodeController.php

+ 4 - 0
modules/Video/Http/Controllers/EpisodeController.php

@@ -68,6 +68,10 @@ class EpisodeController extends CatchController
             ];
         }
         DB::table('video_series')->insert($data);
+        DB::table('videos')
+            ->where(['id' => $request->input('video_id')])
+            ->update(['updated_episode_num' => DB::table('video_series')
+                ->where(['video_id' => $request->input('video_id')])->count(),'updated_at' => $now]);
         return 1;
     }
 }