15m44u 模式.type 归一化(gh/GH/GitHub/github 全算) + 仓库版 img.json 还原全占位符

- lsky.php loadImgJson: 模式.type 归一化判定——小写去空格/横杠/下划线后等于 gh /
  github / 以 github 开头 都算 GitHub。gh/GH/GitHub/GITHUB/github-issue/github_issue
  全部命中;其它值不算。easy/gh_enabled 改按归一化判断,不硬比 'GitHub'。
- img.json(仓库版, 进 git): api 段还原为 example.com/example 占位符(15m44t 误写真值
  进 git 已纠正), repo 段保留占位符+webhook_secret+tag。生产 img.json(FTP) 单独
  维护图床真值, 本次不部署 img.json, 避免再覆盖生产图床配置致 405。
This commit is contained in:
ypsdf1
2026-11-25 15:24:53 +08:00
parent 7ef707557d
commit ed6462d830
2 changed files with 20 additions and 11 deletions
+2 -2
View File
@@ -39,8 +39,8 @@
]
},
"api": {
"baseurl": "https://img.ypshidifu.cn/",
"key": "95895d65c850dd85b02180e2daabcd43",
"baseurl": "https://example.com/",
"key": "example",
"说明": [
"1. key和API地址都要填",
"2. 如果附件支持为true但api没配置自动退回false",