chore: migrate to KT financial system

This commit is contained in:
woshiqp465
2025-11-04 16:06:44 +08:00
parent 2c0505b73d
commit f4cd0a5f22
289 changed files with 7362 additions and 41458 deletions

View File

@@ -13,3 +13,19 @@ $ pnpm run start
# production mode
$ pnpm run build
```
## Telegram Webhook 集成
财务系统新增交易后可自动通知本地的 Telegram 机器人,默认会将交易数据通过以下 Webhook 发送:
- `http://192.168.9.28:8889/webhook/transaction`
- 认证密钥:`ktapp.cc`
如需自定义目标地址或密钥,可在运行前设置以下环境变量:
```bash
export TELEGRAM_WEBHOOK_URL="http://<bot-host>:8889/webhook/transaction"
export TELEGRAM_WEBHOOK_SECRET="自定义密钥"
```
也可以使用旧变量 `FINANCE_BOT_WEBHOOK_URL``FINANCE_BOT_WEBHOOK_SECRET` 进行兼容配置。