15m44m 根治: webhook_secret挪repo段去真实值 + easy不被GitHub压制 + 前端授权按钮 + 独立gh_auth_tokens表不污染工单 + token反解玩家名

This commit is contained in:
ypsdf1
2026-11-25 12:52:25 +08:00
parent 080fdbe23c
commit 00f4db3d3b
6 changed files with 131 additions and 52 deletions
+2 -1
View File
@@ -121,9 +121,10 @@ function ghSyncCreate($ticketId, $player, $title, $description, $images = [], $t
return false;
}
$issueNo = (string)$r['data']['number'];
// 回写 gh_issue_number
// 回写 gh_issue_number(老库先确保列存在)
try {
$db = getDB();
try { $db->exec("ALTER TABLE web_tickets ADD COLUMN gh_issue_number TEXT DEFAULT ''"); } catch (\Throwable $e) { /* 列已存在 */ }
$st = $db->prepare("UPDATE web_tickets SET gh_issue_number = :n WHERE id = :id");
$st->bindValue(':n', $issueNo, SQLITE3_TEXT);
$st->bindValue(':id', $ticketId, SQLITE3_INTEGER);