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