This commit is contained in:
邹宗楠
2026-07-27 13:38:35 +08:00
parent d76fce41ad
commit b213cbea45
8 changed files with 67549 additions and 67377 deletions

View File

@@ -473,6 +473,7 @@ func GetTokenInfo(token string) (authInfo *AuthInfo, err error) {
func SetUserInfo(token string, authInfo *AuthInfo, duration time.Duration) {
api.Cacher.Set(token, authInfo, DefTokenDuration)
api.Cacher.Set(authInfo.Mobile, token, DefTokenDuration)
}
func ClearUserToken(userID string) {