tokenFactory/.codebuddy/memory/2026-06-03.md

949 B
Raw Blame History

Git 推送问题排查

  • 项目首次推送到 https://git.tlyq.ai/xiezhouwei/tokenFactory.git 时遇到 HTTP 413 错误
  • 原因:service/ffprobe-bin/ 包含 3 个大型二进制文件linux-amd64: 76MB, linux-arm64: 49MB, windows-amd64: 97MB用于 embed_ffprobe 构建模式
  • 解决:将 service/ffprobe-bin/ 加入 .gitignore,删除旧 Git 对象重新提交
  • 注意:.gitignore 文件曾被 PowerShell 的 Add-Content 损坏编码(写入 UTF-16 LE需用 Python 重写为 UTF-8
  • 服务器 HTTP 请求体限制极低(~1MB即使 6.74MB 的干净提交仍无法推送,需服务器管理员调整 Gitea 配置

菜单权限优化验证

  • 修复 NotificationSettings.jsx 中遗留的 isAllowedByAdmin 引用(该函数已被删除,会导致运行时错误)
  • 所有修改文件 linter 检查通过,无错误
  • 全项目搜索确认 SidebarModulesAdmin 全局配置引用已完全清理