Merge pull request '新修了一个user.go中的显示bug' (#22) from zzx_branch into master

This commit is contained in:
zzx-coder 2026-07-01 15:51:13 +08:00
commit 42fafdc8ed
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)
}