15m44v 附件走图床嵌真实图片: GitHub 模式附件也传图床拿URL, issue body 用 ![](url) 显示实际图片(图床没配才回退 @gh: 占位)

This commit is contained in:
ypsdf1
2026-11-25 16:42:57 +08:00
parent df37f3ae32
commit 8543f8e573
4 changed files with 34 additions and 14 deletions
+2 -2
View File
@@ -3984,9 +3984,9 @@ if ($currentVersion !== $BUILD_VERSION) {
const txt = document.getElementById('ghAuthText');
const sub = document.getElementById('ghAuthSub');
const btn = document.getElementById('ghAuthBtn');
// ★ 15m44n 互斥二选一:GitHub 模式附件全走 issue,不走图床 → 切附件区文案
// ★ 15m44v:GitHub 模式附件也走图床拿真实 URL,issue body 用 ![](url) 嵌图显示实际图片
const hint = document.getElementById('ticketImgHint');
if (hint) hint.textContent = '📎 GitHub 模式:附件随工单同步到 GitHub issue(不走图床)。选中的文件名会记入 issue,原图请在 GitHub issue 页直接上传。';
if (hint) hint.textContent = '📎 GitHub 模式:附件上传图床后随工单同步到 GitHub issue(issue 内显示实际图片,不再是文件名)。选中的图片会一并上传图床。';
// ★ 15m44v: 按 gh_authorized 显示授权态(不再只靠 URL gh_ok 参数)
const isAuthed = d.gh_authorized === true
|| new URLSearchParams(location.search).get('gh_ok') === '1';