增加了音视频毁掉

This commit is contained in:
2024-02-02 13:32:37 +08:00
parent 10aae768cb
commit 893ec62df6
3 changed files with 186 additions and 103 deletions
+11
View File
@@ -70,4 +70,15 @@ class VideoRecord extends Model
{
return self::where($params)->update($data);
}
/**
* 获取信息-最后一条
* @param array $params
* @param array $fields
* @return object|null
*/
public static function getLastOne(array $params, array $fields = ['*']): object|null
{
return self::where($params)->latest()->first($fields);
}
}