-
Notifications
You must be signed in to change notification settings - Fork 135
[bug] boss search 命令的 --city 参数不生效,始终返回默认城市(北京)的职位 #11
Copy link
Copy link
Open
Description
问题描述
使用 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 直聘后端。建议检查:
opencli-bosscrate 中 city 参数的处理逻辑- API 请求 URL 是否正确包含城市参数
- BOSS 直聘 API 的城市参数格式是否有变化
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels