Add virtual coin loans
check / local-gate (push) Failing after 42s

This commit is contained in:
JWeBot Contributors
2026-10-15 18:43:49 +08:00
parent 2bb2effc04
commit bbddb5be6f
25 changed files with 346 additions and 25 deletions
+7 -3
View File
@@ -8,7 +8,7 @@ JWeBot 是运行于 Linux 的单群微信自动回复系统。它通过本地 OC
观察选定的微信窗口,将消息写入持久化 Edge 账本,调用经过审核的命令插件,
并通过带视觉确认的 GUI 发送链路回复。
当前版本:`alpha 0.6.9.1015`。
当前版本:`alpha 0.6.10.1015`。
0.6.1 新增本地上下文总结、人物与别名索引、单人虚拟金币游戏,并增加
两秒画面复核以补抓遗漏的消息变化。命令和游戏管理规则见
@@ -41,6 +41,8 @@ D 牌、锁店、调阵容和战术窗口会在轮次之间自然提示。
MR15/加时参数都由数据文件驱动,启动时会校验字段、ID 和素材数量。
同版新增虚拟金币转账:`/转账 对方 金额` 会在同一事务内扣款入账,
收款人需先发送 `/金币` 初始化账户。
0.6.10 新增虚拟金币贷款:`/贷款 [金额]` 最多借入 500 金币,`/还款`
可按金额或全部归还;每个账户同一时间最多一笔未还贷款。
### 运行流程
@@ -108,6 +110,7 @@ PATH="$PWD/.venv/bin:$PATH" ./tools/check-local.sh
/人物列表 [页码](/people);/人物 [名称或别名](/person)
/金币(/wallet);/抽奖 [金额](/draw)
/转账 对方 金额(/transfer name amount)
/贷款 [金额](/loan amount);/还款 [金额|全部](/repay)
/彩票 开始|报名|当前状态|开奖|取消(/lottery)
/21点 开始 [1~500];开局后 /21点 要牌|停牌|状态|结束
/游戏记录 [页码](/gamehistory)
@@ -284,7 +287,7 @@ visually confirmed GUI bridge.
Current version:
```text
alpha 0.6.9.1015
alpha 0.6.10.1015
```
## Runtime Flow
@@ -387,7 +390,8 @@ single-player virtual coin games. Chinese aliases share the same implementations
Accounts receive 1000 virtual coins once; funds, game state and event replay
results commit together. `/transfer name amount` moves virtual coins between
initialized group-scoped accounts in one ledger transaction. OCR display aliases
identify group-scoped people; native WeChat account IDs are unavailable. See
identify group-scoped people; `/loan amount` and `/repay` manage one capped
virtual coin loan per account. Native WeChat account IDs are unavailable. See
[plugin rules and capture reconciliation](docs/local-plugins-0.6.1.md).
Version 0.6.2 adds a 30-second total deadline to direct DeepSeek streams so an
unfinished upstream response cannot occupy both generation workers for about