forked from Gitlink/gitlink-cli
fix(user): user +info 改用绝对路径 /users/:login,避免 URL 拼接歧义
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
b1bf96141c
commit
64b8dabb50
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue