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

View File

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