Compare commits

..

2 Commits

Author SHA1 Message Date
junleea aa765e9412 Merge branch 'refs/heads/feat-video' 2024-12-17 18:05:15 +08:00
junleea fb3d2e8e67 修改待删除视频查询逻辑 2024-12-17 18:05:08 +08:00
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ type Video struct {
func FindWillDelVideoList(id int) []Video { func FindWillDelVideoList(id int) []Video {
var videos []Video var videos []Video
DB.Where("auth_id = ?", id).Where("delete_time<=now()").Where("isdelete=0").Find(&videos) DB.Raw("select * from videos where auth_id = ? and delete_time<=now() and isdelete=0", id).Scan(&videos)
return videos return videos
} }