A CLI client for PKU's financial information portal at cwfw.pku.edu.cn (WF_CWBS subsystem).
crates/cwfw/app_id="IIPF") → cwfw.pku.edu.cn/WFManager/home2.jsp → findpages_postData.action → home3.jsp → WF_CWBS 子系统 entry(3 步 bootstrap 缺一不可)src/main.rs — tokio::main 调用 pku_cwfw::run()src/lib.rs — Clap CLI 定义src/client.rs — reqwest clientsrc/login.rs — IAAA → multi-step bootstrap → WF_CWBS sessionsrc/context.rs — 会话上下文(子系统 URL 等)src/encrypt.rs — 表单字段加密(用于某些查询请求)src/api.rs — 各查询 APIsrc/commands.rs — 子命令实现src/display.rs — 终端渲染| Command | 用途 |
|---|---|
| --------- | ----- |
login -p | IAAA 登录 + cwfw 多步 bootstrap |
status / logout | 会话管理 |
| 个人酬金 / 工资 / 报销查询 | 详见 --help |
info-auth check
cwfw login -p
cwfw <query-cmd>
~/.config/info/cwfw/anyhow::Result + .context("中文描述")encrypt.rs),算法直接抄自网页 JS共 1 个版本