Skip to content

[bug] boss search 命令的 --city 参数不生效,始终返回默认城市(北京)的职位 #11

@qq501987847

Description

@qq501987847

问题描述

使用 opencli-rs boss search 命令时,--city 参数无法正确过滤城市,始终返回默认城市(北京)的搜索结果。

复现步骤

# ❌ 错误:--city 参数被忽略,返回北京职位
opencli-rs boss search "openclaw" --city "广州" --limit 10

# ❌ 错误:使用城市代码也无效
opencli-rs boss search "openclaw" --city "101280100" --limit 10

# ✅ 临时解决方案:城市名放在搜索词里
opencli-rs boss search "广州 openclaw" --limit 10

预期行为

--city 参数应该正确过滤搜索结果,返回指定城市的职位。

实际行为

无论 --city 参数设置为什么值,始终返回北京的职位。

环境信息

  • opencli-rs 版本:0.1.3
  • 操作系统:Windows 11 + WSL2
  • 安装方式:官方安装脚本

临时解决方案

将城市名直接放在搜索关键词中可以正常工作:

# 正确用法
opencli-rs boss search "广州 openclaw" --limit 30
opencli-rs boss search "广州 测试" --limit 30

附加信息

这似乎是 --city 参数在 API 请求中没有正确传递给 BOSS 直聘后端。建议检查:

  1. opencli-boss crate 中 city 参数的处理逻辑
  2. API 请求 URL 是否正确包含城市参数
  3. BOSS 直聘 API 的城市参数格式是否有变化

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions