From fb132cc088cdc7ca592ff67f1a2fe72131e70f43 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 10 Aug 2022 10:09:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=AD=97=E6=AE=B5cast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/ProgramAppends.php | 1 - app/Models/ProgramVideos.php | 1 - app/Models/Programs.php | 1 - app/Models/VideoComments.php | 1 + app/Models/VideoDanmakus.php | 1 + app/Models/Videos.php | 1 + 6 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Models/ProgramAppends.php b/app/Models/ProgramAppends.php index e0e3d1b..f5476c2 100644 --- a/app/Models/ProgramAppends.php +++ b/app/Models/ProgramAppends.php @@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Model; class ProgramAppends extends Model { protected $fillable = ["name", "from", "price", "append"]; - protected $dateFormat = "U"; public function program(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Programs::class, "program_id", "id"); diff --git a/app/Models/ProgramVideos.php b/app/Models/ProgramVideos.php index feca603..2f64cdb 100644 --- a/app/Models/ProgramVideos.php +++ b/app/Models/ProgramVideos.php @@ -9,7 +9,6 @@ use Illuminate\Support\Carbon; class ProgramVideos extends Model { protected $fillable = ["video_bvid", "start_part", "start_time", "stop_part", "stop_time"]; - protected $dateFormat = 'U'; public function program(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Programs::class, "program_id", "id"); diff --git a/app/Models/Programs.php b/app/Models/Programs.php index 6f4cb3a..9bb0054 100644 --- a/app/Models/Programs.php +++ b/app/Models/Programs.php @@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Model; class Programs extends Model { protected $fillable = ["name", "difficulty", "desc"]; - protected $dateFormat = 'U'; public function appends(): \Illuminate\Database\Eloquent\Relations\HasMany { return $this->hasMany(ProgramAppends::class, "program_id", "id")->orderByDesc("is_original")->orderBy("created_at"); diff --git a/app/Models/VideoComments.php b/app/Models/VideoComments.php index d06017f..c3430bb 100644 --- a/app/Models/VideoComments.php +++ b/app/Models/VideoComments.php @@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\Model; class VideoComments extends Model { + protected $dateFormat = 'U'; public function video(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Videos::class, "aid", "id"); diff --git a/app/Models/VideoDanmakus.php b/app/Models/VideoDanmakus.php index a08225e..41af5ad 100644 --- a/app/Models/VideoDanmakus.php +++ b/app/Models/VideoDanmakus.php @@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Model; class VideoDanmakus extends Model { protected $table = "video_danmakus"; + protected $dateFormat = 'U'; public function video(): \Illuminate\Database\Eloquent\Relations\BelongsTo { return $this->belongsTo(Videos::class, "video_bvid", "bvid"); diff --git a/app/Models/Videos.php b/app/Models/Videos.php index 9acfa9d..30220af 100644 --- a/app/Models/Videos.php +++ b/app/Models/Videos.php @@ -6,6 +6,7 @@ use Illuminate\Database\Eloquent\Model; class Videos extends Model { + protected $dateFormat = 'U'; public function comments(): \Illuminate\Database\Eloquent\Relations\HasMany { return $this->hasMany(VideoComments::class, "aid", "id");