修改video按时间获取,user二维码问题
This commit is contained in:
parent
9c494de4c1
commit
2e00544a39
|
|
@ -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 != "" {
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue