fix(user): user +info 改用绝对路径 /users/:login,避免 URL 拼接歧义

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
狗gogo 2026-07-01 15:37:16 +08:00
parent b1bf96141c
commit 64b8dabb50
1 changed files with 1 additions and 2 deletions

View File

@ -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)
}