You've already forked lubo_comment_query
新款导入节目单,自动匹配时间(需提前导入分P信息)
This commit is contained in:
@ -6,6 +6,13 @@ use Illuminate\Database\Eloquent\Casts\Attribute;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* @property Carbon $created_at
|
||||
* @property int $stop_part
|
||||
* @property int $start_part
|
||||
* @property int $startSec
|
||||
* @property int $stopSec
|
||||
*/
|
||||
class ProgramVideos extends Model
|
||||
{
|
||||
protected $fillable = ["video_bvid", "start_part", "start_time", "stop_part", "stop_time"];
|
||||
|
@ -4,9 +4,15 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @property \Carbon\Carbon $duration
|
||||
*/
|
||||
class VideoParts extends Model
|
||||
{
|
||||
public $timestamps = false;
|
||||
protected $casts = [
|
||||
"duration" => "datetime",
|
||||
];
|
||||
public function video(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Videos::class, "bvid", "bvid");
|
||||
|
Reference in New Issue
Block a user