修改video按时间获取,user二维码问题

This commit is contained in:
junleea 2024-06-13 18:34:18 +08:00
parent 9c494de4c1
commit 2e00544a39
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ func SetQRStatus(c *gin.Context) {
// 确认返回token数据 // 确认返回token数据
func ConfirmQRLogin(c *gin.Context) { func ConfirmQRLogin(c *gin.Context) {
var qrsetReq QRReq var qrsetReq QRReq
if err := c.ShouldBind(&qrsetReq); err == nil && qrsetReq.UUID == "" { if err := c.ShouldBind(&qrsetReq); err == nil && qrsetReq.UUID != "" {
//user_id, _ := c.Get("id") //user_id, _ := c.Get("id")
user_name, _ := c.Get("username") user_name, _ := c.Get("username")
if user_name != "" { if user_name != "" {

View File

@ -31,7 +31,7 @@ func GetVideoList(auth_id int, start, end string) []dao.Video {
fmt.Println(err2) fmt.Println(err2)
return []dao.Video{} return []dao.Video{}
} }
return dao.FindVideoListByTime(auth_id, s.Format("2006-01-02 15:04:05"), e.Format("2006-01-02 15:04:05")) return dao.FindVideoListByTime(auth_id, start, end)
} }
} }