This commit is contained in:
richboo111
2022-08-12 10:51:57 +08:00
parent 2ad054b7de
commit e0ed6f1665

View File

@@ -475,7 +475,8 @@ func ClearUserToken(userID string) {
func createToken(user IUser, authBindInfo *AuthBindEx) (token string, tokenType int) {
userID := TokenUserEmpty
userName := authBindInfo.AuthID
tokenType = TokenTypeOnlyAuth
tokenType = TokenTypeNormal
//tokenType = TokenTypeOnlyAuth
if user != nil {
userID = user.GetID()
userName = "[" + user.GetID2() + "]"