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

@ -16,6 +16,7 @@
"domain_host": "maomao.guanghulab.com",
"forgejo_port": 3002,
"panel_port": 3003,
"window_hours": 12,
"node_root": "/srv/guanghu/mm-gz-001",
"admin_token_file": "/srv/guanghu/mm-gz-001/panel/admin-token",
"sessions_file": "/srv/guanghu/mm-gz-001/panel/sessions.json",