feat(panel-kit): 写入窗口时长升级为配置驱动 window_hours

苍耳提请:一次授权3小时太短,胖头鱼升至12小时。
- server.js:WINDOW_HOURS 读 config.json(缺省3h保持向后兼容),
  TTL/全部文案/唤醒链/领取规则/git代理提示动态化;state() 新增 windowHours
- config.example.json:新增 window_hours 字段(示例12)
- INDEX.hdlp:窗口制说明与铁律同步
- 两套前端示例:授权按钮改读 s.windowHours 动态时长
- 钩子模板:拒绝文案去掉写死时长
This commit is contained in:
冰朔 2026-08-07 18:56:35 +08:00
commit a6ad978b04
6 changed files with 20 additions and 17 deletions

View file

@ -43,7 +43,7 @@ while read -r old new ref; do
W=$(active_grant)
if [ "$W" = "none" ]; then
VERDICT=REJECT
REASONS+=("无有效写入窗口(3小时授权已过期或未申请)。人格体请先 POST https://maomao.guanghulab.com/api/access-request 申请,等苍耳审批")
REASONS+=("无有效写入窗口(授权已过期或未申请)。人格体请先 POST https://maomao.guanghulab.com/api/access-request 申请,等苍耳审批")
continue
fi
PUSHER_ATTR="$W"