You've already forked lubo_comment_query
建设支持分页,节目列表添加开打时间,暂时停止使用cdn
This commit is contained in:
@ -10,7 +10,8 @@ class ProgramConstructController extends BaseController
|
||||
{
|
||||
public function construct(Request $request) {
|
||||
$status = $request->get("status", "0");
|
||||
$programs = Programs::query()->with(["appends", "video_pivots.video"])->where("status", $status, 0)->limit(15)->orderByDesc("created_at")->get();
|
||||
$query = Programs::query()->with(["appends", "video_pivots.video"])->where("status", $status, 0)->orderByDesc("created_at");
|
||||
$programs = $query->paginate(10)->withQueryString();;
|
||||
return view("program.construct.index", [
|
||||
"programs"=>$programs,
|
||||
]);
|
||||
|
@ -29,13 +29,15 @@ class ProgramVideoConstructController extends BaseController
|
||||
$file = $request->file("start_image");
|
||||
$path = $file->store("lubo_file");
|
||||
$full_path = Storage::url($path);
|
||||
$program_video->start_image = str_replace("jerryyan.top", "jerryyan.net", $full_path);
|
||||
// $program_video->start_image = str_replace("jerryyan.top", "jerryyan.net", $full_path);
|
||||
$program_video->start_image = $full_path;
|
||||
}
|
||||
if ($request->hasFile("stop_image")) {
|
||||
$file = $request->file("stop_image");
|
||||
$path = $file->store("lubo_file");
|
||||
$full_path = Storage::url($path);
|
||||
$program_video->stop_image = str_replace("jerryyan.top", "jerryyan.net", $full_path);
|
||||
// $program_video->stop_image = str_replace("jerryyan.top", "jerryyan.net", $full_path);
|
||||
$program_video->stop_image = $full_path;
|
||||
}
|
||||
$program_video->created_at = $request->post("created_at");
|
||||
$program_video->update($updatePayload);
|
||||
|
Reference in New Issue
Block a user