refactor: 调整图片/视频上传

This commit is contained in:
2025-02-19 16:58:31 +08:00
parent 5c15fb83e1
commit fd06b1b1ac
7 changed files with 36 additions and 36 deletions

View File

@@ -14,6 +14,6 @@ class SysImageModel extends SysImageBaseModel
// 根据md5获取图片
public function scopeMd5($query, $md5)
{
$query->where('image_md5', '=', $md5);
$query->where('file_md5', '=', $md5);
}
}

View File

@@ -14,6 +14,6 @@ class SysVideoModel extends SysVideoBaseModel
// 根据md5查询
public function scopeMd5($query, $value)
{
$query->where('video_md5', '=', $value);
$query->where('file_md5', '=', $value);
}
}