feat(扫码签到):扫码签到方案调整~
deploy-hxtesting / build-and-deploy (push) Successful in 1m16s

This commit is contained in:
runny committed 2026-11-25 11:55:12 +08:00
1 parent f43fbef5db
commit 21abd01593
11 files changed
+450 -104

No files matched your search

+5
View File
@@ -69,6 +69,11 @@ var noAuthAPI = map[string][]string{
// 鉴权,路由级 IP 限流承担防滥用;checkin-page(登录态)不在此列。
"/api/v1/training/wecom/checkin-auth": {"GET"},
"/api/v1/training/wecom/checkin-session": {"POST"},
// 工号扫码签到(2026-11-25 调整,可信域名未就绪期间的免登替代主流程):
// 身份由「未过期签到码 token + 名单内工号」承载,nonce 防重放,
// 自动登录可由规则项 employee_checkin_autologin 关闭。
"/api/v1/training/wecom/checkin-page-anon": {"POST"},
"/api/v1/training/wecom/checkin-by-employee": {"POST"},
// IM platforms (Feishu, Slack, etc.) commonly issue a HEAD request
// before GET to validate Content-Type / Content-Length when rendering
// image previews — both verbs must be allowed for image links to work.