修复所有bug并添加新功能

- 修复添加账号按钮无反应问题
- 添加账号备注字段(可选)
- 添加账号设置按钮(修改密码/备注)
- 修复用户反馈���能
- 添加定时任务执行日志
- 修复容器重启后账号加载问题
- 修复所有JavaScript语法错误
- 优化账号加载机制(4层保障)

🤖 Generated with Claude Code
This commit is contained in:
Yu Yon
2025-12-10 11:19:16 +08:00
parent 0fd7137cea
commit b5344cd55e
67 changed files with 38235 additions and 3271 deletions

View File

@@ -82,8 +82,8 @@ class ConnectionPool:
print(f"归还连接失败(数据库错误): {e}")
try:
conn.close()
except Exception:
pass
except Exception as close_error:
print(f"关闭损坏的连接失败: {close_error}")
# 创建新连接补充
with self._lock:
try:
@@ -96,14 +96,14 @@ class ConnectionPool:
print(f"警告: 连接池已满,关闭多余连接")
try:
conn.close()
except Exception:
pass
except Exception as close_error:
print(f"关闭多余连接失败: {close_error}")
except Exception as e:
print(f"归还连接失败(未知错误): {e}")
try:
conn.close()
except Exception:
pass
except Exception as close_error:
print(f"关闭异常连接失败: {close_error}")
def close_all(self):
"""关闭所有连接"""