feat: optimize weixin channel qr code generate

This commit is contained in:
zhayujie
2026-03-22 18:20:10 +08:00
parent c1421e0874
commit a483ec0cea
5 changed files with 69 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ description: 将 CowAgent 接入个人微信
首次启动时,终端会显示一个二维码(有效期约 2 分钟)。使用微信扫描二维码并在手机上确认后即可完成登录。
- 二维码过期后会自动刷新并重新显示
- 安装 `qrcode` Python 包可在终端直接渲染二维码图案`pip3 install qrcode`
- `requirements.txt` 中已默认包含 `qrcode` 依赖,安装后可在终端直接渲染二维码图案
### 凭证保存

View File

@@ -42,7 +42,7 @@ Login credentials are automatically saved to `~/.weixin_cow_credentials.json`. T
On first startup, a QR code is displayed in the terminal (valid for approximately 2 minutes). Scan it with WeChat and confirm on your phone.
- The QR code automatically refreshes when it expires
- Install the `qrcode` Python package to render the QR code directly in the terminal: `pip3 install qrcode`
- The `qrcode` dependency is already included in `requirements.txt`, enabling QR code rendering directly in the terminal
### Credential Persistence

View File

@@ -42,7 +42,7 @@ description: CowAgent を個人の WeChat に接続する
初回起動時に、ターミナルに QR コードが表示されます(有効期限は約 2 分。WeChat でスキャンし、スマートフォンで確認してください。
- QR コードが期限切れになると自動的に更新・再表示されます
- `qrcode` Python パッケージをインストールすると、ターミナルに直接 QR コードを表示できます`pip3 install qrcode`
- `qrcode` 依存関係は `requirements.txt` にデフォルトで含まれており、ターミナルに直接 QR コードを表示できます
### 認証情報の永続化