Skip to content

Commit

Permalink
perf: 优化组件内获取用户信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Halo1236 committed Aug 23, 2024
1 parent 887ef52 commit eceb7ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/jms-sdk-go/service/jms_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ func (s *JMService) CheckUserCookie(cookies map[string]string) (user *model.User
for k, v := range cookies {
client.SetCookie(k, v)
}
client.SetHeader("X-JMS-LOGIN-TYPE", "T")
_, err = client.Get(UserProfileURL, &user)
return
}

0 comments on commit eceb7ea

Please sign in to comment.