diff --git a/models/base.go b/models/base.go index b442597..d213d89 100644 --- a/models/base.go +++ b/models/base.go @@ -28,7 +28,7 @@ func ParseToken(token string) (_type string, id int, err error) { return } _type = tokens[0] - if tokens[0] == define.TYPE_USER { // h5用户 + if tokens[0] == define.TYPE_USER || tokens[0] == define.TYPE_LIVEUSER { // h5用户 user := &User{} err = user.GetByToken(tokens[1]) if err != nil {