aa
This commit is contained in:
@@ -43,7 +43,8 @@ func checkToken(c *gin.Context) (tokenInfo *model.TokenInfo) {
|
||||
tokenInfo.Token = cookie.Value
|
||||
}
|
||||
globals.SugarLogger.Debugf("checkToken token1: %v", tokenInfo.Token)
|
||||
if token = utils.GetKey(tokenInfo.Token).(string); token == "" {
|
||||
if tokenMap := utils.GetKey(tokenInfo.Token).(map[string]interface{}); token == "" {
|
||||
fmt.Println("111111111111111111111111", tokenMap)
|
||||
err = fmt.Errorf("token过期或无效,请重新登录!")
|
||||
c.JSON(http.StatusOK, &CallBack{
|
||||
Desc: err.Error(),
|
||||
|
||||
Reference in New Issue
Block a user