yuanstarstar/dsh-bit-login ↗★ 0

dsh-bit-login

Connect DSH to BIT (Beijing Institute of Technology): campus network (Srun / 10.0.0.55) status, traffic, balance, login, logout, diagnostics — plus scores, schedule, student profile, free classrooms and exam timetable via the BIT101 BIT-Login gateway. Ships model tools, prompt injection and a settings panel. 适合北理工师生,用于校园网登录、状态监控及查询成绩课表。

Package
dsh-bit-login
Compatibility
Unverified
Version
1.3.0
License
MIT
Last updated
Oct 8, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yuanstarstar/dsh-bit-login

配置

改 cordis.patch.yml 的 config: 段(patch 层跨升级保留):

键默认说明
gatewayhttp://10.0.0.55Srun 网关地址,一般不用改
isp''运营商后缀:''(校园网)/ cmcc / cmct / unicom,也可按次在 bit_login_login 的 isp 参数里覆盖
timeoutMs6000单次 HTTP 超时
refreshSeconds60后台状态采集间隔;0 关闭。校园网外自动退避,最长 15 分钟一次
promptInjectionautoauto 仅网关可达或在线时注入 · always 恒注入 · off 关闭
routePrefix/dsh-bit-login面板调用的 Host 路由前缀
schoolEnabledtrue是否启用「学校系统 · 成绩 / 课表」工具与路由
schoolBaseUrlhttps://login.bit101.flwfdd.xyzBIT101 社区运维的 BIT-Login 网关(第三方)
schoolServices['jwb','jxzxehall']登录时申请的服务:jwb = 本科成绩,jxzxehall = 课表 / 空闲教室 / 考试
schoolTimeoutMs20000网关单次请求超时
schoolPollBudgetMs25000登录后轮询等待验证码的总时间预算
jxzxehallApphttps://jxzxehallapp.bit.edu.cn教学中心直连地址(空闲教室 / 考试用)。直连被拒或连不上时自动改走 webvpn,无需手工配置
rememberCredentialstrue记住凭据(只在进程内存里)以便会话过期后静默重登;false 退化成「一次登录管 30 分钟」
keepAlivetrue后台保活:临近到期时自动续期,让登录态一直活到关闭 DSH
keepAliveIntervalSeconds120保活检查间隔(最小 15 秒)
refreshBeforeSeconds300剩余有效期少于这个秒数就去续期