ypsdf1
a8ac78a87f
15m44w 续5c 根治横条消失: 删全仓 curl_close + JSON 端点抑制 deprecation 输出
真根因(推翻 token 过期说): PHP8.5 下 curl_close() 已废弃, 每次调用都输出
<br><b>Deprecated</b> 污染 JSON 响应体 → 前端 res.json() 解析失败进 catch
(端点 catch 注释'不显示') → GitHub 授权横条消失。实测 gh_cfg 后端验活 status=200
ok=true 但响应体被警告污染, 非纯 JSON。
修: ① 全仓 8 处独立 curl_close 语句删除(PHP8+ 是 no-op, 出作用域自动关闭,
删了不改行为还消除 deprecation 源头); ② gh_cfg/gh_diag/gh_git_probe 顶部加
error_reporting(0)+display_errors=0 兜底, 彻底防任何警告污染响应体。
实测部署后 gh_cfg.php 返回纯 JSON, gh_authorized=true。
2026-11-25 20:40:38 +08:00
..
2026-10-26 21:49:50 +08:00
2026-11-21 23:57:12 +08:00
2026-06-26 21:25:40 +08:00
2026-07-07 22:43:51 +08:00
2026-10-21 15:10:47 +08:00
2026-11-08 15:27:00 +08:00
2026-11-24 20:25:30 +08:00
2026-09-30 15:56:16 +08:00
2026-11-25 20:40:38 +08:00
2026-11-25 14:29:35 +08:00
2026-11-25 20:40:38 +08:00
2026-11-25 20:40:38 +08:00
2026-11-25 20:40:38 +08:00
2026-11-25 12:16:37 +08:00
2026-11-24 21:57:56 +08:00
2026-10-14 18:08:43 +08:00
2026-10-27 11:26:45 +08:00
2026-11-25 20:40:38 +08:00
2026-11-24 19:33:41 +08:00
2026-10-07 23:54:42 +08:00
2026-11-25 20:40:38 +08:00
2026-10-09 18:16:56 +08:00
2026-10-07 21:03:35 +08:00
2026-10-25 18:40:35 +08:00
2026-07-09 17:09:35 +08:00
2026-11-11 18:22:20 +08:00
2026-09-30 17:32:08 +08:00
2026-11-24 20:25:30 +08:00
2026-11-25 17:30:25 +08:00
2026-10-22 23:24:32 +08:00
2026-11-25 20:40:38 +08:00