diff --git a/shortcuts/user/user.go b/shortcuts/user/user.go index 4971cc2..a59eae4 100644 --- a/shortcuts/user/user.go +++ b/shortcuts/user/user.go @@ -30,8 +30,7 @@ func Shortcuts() []*common.Shortcut { if err != nil { return err } - // Use relative path to avoid URL construction issues - env, err := ctx.CallAPI("GET", fmt.Sprintf("users/%s", login), nil) + env, err := ctx.CallAPI("GET", fmt.Sprintf("/users/%s", login), nil) if err != nil { return fmt.Errorf("查看用户信息失败: %w", err) }