企业微信

This commit is contained in:
super committed 2026-04-20 09:08:58 +08:00
1 parent 46ac70f4c5
commit a9fc852abb
33 files changed
+4875 -106

No files matched your search

+6 -1
View File
@@ -4,12 +4,18 @@
Set these on the backend runtime:
- Recommended start point: copy `backend/.env.production.example` to `backend/.env` and update values.
- `WECOM_ENABLED=true`
- `WECOM_CORP_ID=<your_corp_id>`
- `WECOM_AGENT_ID=<your_agent_id>`
- `WECOM_SECRET=<your_app_secret>`
- `WECOM_REDIRECT_URI=https://<your-domain>/workspace`
- `WECOM_AUTO_CREATE_USER=true` (or `false` if you require manual admin binding)
- `WECOM_MATCH_RULES=employee_id,mobile` (supported: `employee_id,mobile,email`)
- `WECOM_MATCH_OPERATOR=AND` (`AND` / `OR`)
- `WECOM_EMPLOYEE_ID_SOURCE=userid` (or `extattr:<name>`)
- `WECOM_MOBILE_NORMALIZE=true`
## 2) Database Migration
@@ -56,4 +62,3 @@ Available admin APIs:
2. WeCom login success creates an audit record.
3. Invalid/expired state is rejected.
4. Disabled user cannot login via WeCom.