Skip to content

feat: add QQ Bot QR code onboard#336

Open
idle888 wants to merge 7 commits intoEKKOLearnAI:mainfrom
idle888:feat/qq-qrcode-login
Open

feat: add QQ Bot QR code onboard#336
idle888 wants to merge 7 commits intoEKKOLearnAI:mainfrom
idle888:feat/qq-qrcode-login

Conversation

@idle888
Copy link
Copy Markdown
Contributor

@idle888 idle888 commented Apr 30, 2026

  • Add server controller packages/server/src/controllers/hermes/qq.ts (create_bind_task, poll_bind_result, AES-256-CBC decrypt, save to .env)
  • Add server route packages/server/src/routes/hermes/qq.ts
  • Register qq route in packages/server/src/routes/index.ts
  • Add QQ API functions to packages/client/src/api/hermes/config.ts (fetchQqQrCode, pollQrStatus, saveQqCredentials)
  • Add QQ Bot platform card + QR scan UI to PlatformSettings.vue (status machine: idle→loading→waiting→scanned→confirmed)

Summary

Type of Change

  • Feature (new functionality)
  • Bug fix
  • Refactor (no functional change)
  • Docs
  • CI/CD
  • Other

Changes

Test Plan

  • Build passes (npm run build)
  • Tested manually

Screenshots (if applicable)

Related Issues

@idle888 idle888 force-pushed the feat/qq-qrcode-login branch from 1ad8007 to 6a16cf1 Compare April 30, 2026 06:56
@EKKOLearnAI
Copy link
Copy Markdown
Owner

点击创建机器人失败,是我的问题吗?没用过qq

@idle888
Copy link
Copy Markdown
Contributor Author

idle888 commented Apr 30, 2026 via email

@EKKOLearnAI
Copy link
Copy Markdown
Owner

好我去注册看下

@EKKOLearnAI
Copy link
Copy Markdown
Owner

image 添加appid 和私钥保存失败

idle888 and others added 7 commits May 4, 2026 11:52
- Add server controller packages/server/src/controllers/hermes/qq.ts
  (create_bind_task, poll_bind_result, AES-256-CBC decrypt, save to .env)
- Add server route packages/server/src/routes/hermes/qq.ts
- Register qq route in packages/server/src/routes/index.ts
- Add QQ API functions to packages/client/src/api/hermes/config.ts
  (fetchQqQrCode, pollQrStatus, saveQqCredentials)
- Add QQ Bot platform card + QR scan UI to PlatformSettings.vue
  (status machine: idle→loading→waiting→scanned→confirmed)
Hermes Gateway reads from ~/.hermes/.env, not profile .env.
This fixes the issue where QR scanned credentials were not being loaded.
- qq.ts save(): write .env AND config.yaml platforms.qq.extra + enabled
- updateCredentials(): sync config.yaml platforms.<platform> when writing .env
- Both paths now ensure gateway can read QQ credentials from config.yaml
@idle888 idle888 force-pushed the feat/qq-qrcode-login branch from b0a19ac to 61f3a34 Compare May 4, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants