修复账号没了找不到email

This commit is contained in:
2026-07-06 18:36:11 +08:00
parent d3a479ed76
commit 10c312eb09
5 changed files with 29 additions and 19 deletions
+4 -1
View File
@@ -108,7 +108,10 @@ func (h *AdminReadHandler) Logs(c *gin.Context) {
userName = item.UserID
}
var accountName any
if item.AccountID != "" {
if item.AccountEmail != "" {
// Email stamped on the row itself survives account deletion/re-import.
accountName = item.AccountEmail
} else if item.AccountID != "" {
if label, ok := accountByID[item.AccountID]; ok {
accountName = label
} else {
@@ -284,7 +284,10 @@ func (h *UserGenerationHandler) Logs(c *gin.Context) {
// which upstream account (email) fulfilled their generation.
var accountName, accountID any
if userID == "" {
if item.AccountID != "" {
if item.AccountEmail != "" {
// Email stamped on the row itself survives account deletion/re-import.
accountName = item.AccountEmail
} else if item.AccountID != "" {
if label, ok := accountByID[item.AccountID]; ok {
accountName = label
} else {