Compare commits

..

No commits in common. "3e68e4cfa8597f0f417c66a1602cfb33abe9d2bd" and "9c9a6bf8707ceffa694c84e9d021f7e5bed0715e" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -10,7 +10,6 @@ import (
"log"
"net/http"
"os"
"strconv"
"strings"
"videoplayer/dao"
"videoplayer/handler"
@ -144,9 +143,7 @@ func JWTAuthMiddleware() gin.HandlerFunc {
})
return
}
id, _ := strconv.Atoi(s_id)
//查看s_id类型
c.Set("id", id)
c.Set("id", s_id)
c.Next()
return
}

View File

@ -112,7 +112,7 @@ func UserSyncDataFromMaster() {
req.Token = tokens[0]
req.Device = proto.Config.SERVER_NAME
all := worker.GetRedis("user_sync_all")
is_all := false //是否全量同步
var is_all bool //是否全量同步
if all == "" || all == "1" {
is_all = true
//清空数据表