15m44v 附件走图床嵌真实图片: GitHub 模式附件也传图床拿URL, issue body 用  显示实际图片(图床没配才回退 @gh: 占位)
This commit is contained in:
+2
-2
@@ -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 用  嵌图显示实际图片
|
||||
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';
|
||||
|
||||
Reference in New Issue
Block a user