新修了一个user.go中的显示bug #22

Merged
zzx-coder merged 1 commits from zzx_branch into master 2026-07-01 15:51:14 +08:00
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)
}